feat: (vm) memory mapping support: mmap/munmap
[lunaix-os.git] / lunaix-os / includes / lunaix / mm / region.h
1 #ifndef __LUNAIX_REGION_H
2 #define __LUNAIX_REGION_H
3
4 #include <lunaix/mm/mm.h>
5
6 struct mm_region*
7 region_add(struct llist_header* lead, ptr_t start, ptr_t end, u32_t attr);
8
9 void
10 region_release_all(struct llist_header* lead);
11
12 struct mm_region*
13 region_get(struct llist_header* lead, unsigned long vaddr);
14
15 void
16 region_copy(struct llist_header* src, struct llist_header* dest);
17
18 #endif /* __LUNAIX_REGION_H */