summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-03-27 02:36:17 -0400
committerIan Moffett <ian@osmora.org>2025-03-27 02:36:17 -0400
commit79e18e209ccd21f4976e8b795cbbffbfbde3edc1 (patch)
tree7f63d69c5678e6549f4cae1422c1042aa98c0d12 /sys/include
parent22baa5ea8d87ce8e4dd41b209114aa5502b7b2a0 (diff)
kernel: vm: Add munmap() impl
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/mman.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/sys/mman.h b/sys/include/sys/mman.h
index 98ff8fe..4ead9ba 100644
--- a/sys/include/sys/mman.h
+++ b/sys/include/sys/mman.h
@@ -80,6 +80,9 @@ struct mmap_lgdr {
size_t nbytes;
};
+/* Kernel munmap() routine */
+int munmap_at(void *addr, size_t len);
+
/* Kernel mmap() routine */
void *mmap_at(void *addr, size_t len, int prot, int flags,
int fildes, off_t off);
@@ -90,5 +93,6 @@ RBT_PROTOTYPE(lgdr_entries, mmap_entry, hd, mmap_entrycmp)
/* Syscall layer */
scret_t mmap(struct syscall_args *scargs);
+scret_t munmap(struct syscall_args *scargs);
#endif /* !_SYS_MMAN_H_ */