diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-05 20:14:46 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-05 20:14:46 +0300 |
| commit | 83a6fc687cab3ee87c6cae1324728521f9877ad0 (patch) | |
| tree | c94d811e702c7bc517886052b42f4b27309ece98 /src/vmem.c | |
| parent | e09edb5d54e39bd9509a1dc450df5ab320759f97 (diff) | |
| download | kmi-83a6fc687cab3ee87c6cae1324728521f9877ad0.tar.gz kmi-83a6fc687cab3ee87c6cae1324728521f9877ad0.zip | |
formatting and documentation
Diffstat (limited to 'src/vmem.c')
| -rw-r--r-- | src/vmem.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -232,6 +232,18 @@ vm_t alloc_fixed_uvmem(struct tcb *t, vm_t start, size_t size, vmflags_t flags) return w; } +/** + * Helper for \ref map_fixed_mem(). + * Maps some contiguous bit of physical memory to an allocated virtual memory region. + * + * @param b Virtual memory to work in. + * @param v Start of virtual memory region. + * @param p Start of physical memory region. + * @param size Size of virtual memory region. + * @param flags Flags to use for mappings. + * @param status Is written to with the status of this function. + * @return The start of the virtual address mapping. + */ static vm_t map_fixed_region(struct vmem *b, vm_t v, pm_t p, size_t size, vmflags_t flags, stat_t *status) { |
