aboutsummaryrefslogtreecommitdiff
path: root/common/vmem.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-06-09 23:50:14 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-06-09 23:50:14 +0300
commitda8eeb7695a4803d1d45c8c26c05a51fb1ba1e55 (patch)
tree85323057da02893e351426c60f2c5cfd5603b428 /common/vmem.c
parente30cd339e271b0d16dbecf6c521fa06c3a05e3f1 (diff)
downloadkmi-da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55.tar.gz
kmi-da8eeb7695a4803d1d45c8c26c05a51fb1ba1e55.zip
continue documentation
Diffstat (limited to 'common/vmem.c')
-rw-r--r--common/vmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/vmem.c b/common/vmem.c
index c9b8474..66c3d53 100644
--- a/common/vmem.c
+++ b/common/vmem.c
@@ -57,7 +57,7 @@ vm_t alloc_uvmem(struct tcb *t, size_t size, vmflags_t flags)
stat_t status = OK;
const vm_t v = alloc_region(&t->sp_r, size, &size, flags);
const vm_t w = map_allocd_region(t->proc.vmem, v, size, flags, &status);
- /* TODO: this could be changed so that each thread allocated the memory
+ /* \todo: this could be changed so that each thread allocated the memory
* region for itself to start with, and only when someone tries to
* access it from some other thread, is it actually cloned. Would likely
* need some major reworkings, so this is good enough for now. */
@@ -122,7 +122,7 @@ vm_t ref_shared_uvmem(struct tcb *t1, struct tcb *t2, vm_t va, vmflags_t flags)
return v;
}
-/* TODO: assume tcb is root tcb? */
+/* \todo: assume tcb is root tcb? */
stat_t free_uvmem(struct tcb *t, vm_t va)
{
struct mem_region *m = find_used_region(&t->sp_r, va);