From 426da8be0db33405b0cfe53108b65040623972f0 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 11 Jun 2022 19:08:18 +0300 Subject: continue documentation --- include/apos/tcb.h | 2 ++ include/apos/vmem.h | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'include/apos') diff --git a/include/apos/tcb.h b/include/apos/tcb.h index 18cf3ad..b43d5b4 100644 --- a/include/apos/tcb.h +++ b/include/apos/tcb.h @@ -252,6 +252,8 @@ struct tcb *cur_proc(); /** * Set \c t as current \ref tcb. * + * Also updates the current cpu id of the tcb. + * * @param t Thread to mark as current. */ void use_tcb(struct tcb *t); diff --git a/include/apos/vmem.h b/include/apos/vmem.h index c02d968..8388327 100644 --- a/include/apos/vmem.h +++ b/include/apos/vmem.h @@ -148,9 +148,9 @@ stat_t alloc_shared_wrapper(struct vmem *b, pm_t *offset, vm_t vaddr, vmflags_t flags, enum mm_order order, void *data); /** - * User virtual memory COW cloning worker callback for \ref map_fill_region(). + * User virtual memory COW copying worker callback for \ref map_fill_region(). * - * Currently unused, but intention is to set up COW clone of some other virtual + * Currently unused, but intention is to set up COW copy of some other virtual * memory region, likely passed through \c data? * * @param b Virtual memory to work in. @@ -164,8 +164,8 @@ stat_t alloc_shared_wrapper(struct vmem *b, pm_t *offset, vm_t vaddr, * \see alloc_uvmem_wraper(). * \todo Implement. */ -stat_t clone_allocd_wrapper(struct vmem *b, pm_t *offset, vm_t vaddr, - vmflags_t flags, enum mm_order order, void *data); +stat_t copy_allocd_wrapper(struct vmem *b, pm_t *offset, vm_t vaddr, + vmflags_t flags, enum mm_order order, void *data); /** * User virtual memory freeing worker callback for \ref map_fill_region(). @@ -211,7 +211,7 @@ stat_t free_uvmem_wrapper(struct vmem *b, pm_t *offset, vm_t vaddr, map_fill_region(b, &alloc_shared_wrapper, 0, start, bytes, flags, data) /** - * Convenience wrapper for \ref map_fill_region() when COW cloning a region. + * Convenience wrapper for \ref map_fill_region() when COW copying a region. * * @param b Virtual memory to work in. * @param start Start of virtual memory region to map. @@ -220,8 +220,8 @@ stat_t free_uvmem_wrapper(struct vmem *b, pm_t *offset, vm_t vaddr, * @param data Pointer to \c vmem to clone. * @return \see map_fill_region(). */ -#define clone_allocd_region(b, start, bytes, flags, data) \ - map_fill_region(b, &clone_allocd_wrapper, 0, start, bytes, flags, data) +#define copy_allocd_region(b, start, bytes, flags, data) \ + map_fill_region(b, ©_allocd_wrapper, 0, start, bytes, flags, data) /** * Convenience wrapper for \ref map_fill_region() when freeing region. -- cgit v1.3