X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/a9cfeffd21239290ab1da46a952fe5789ae3f6de..c50b9a23b03c677efa3842536c363d368542e30b:/lunaix-os/includes/lunaix/mm/mmap.h diff --git a/lunaix-os/includes/lunaix/mm/mmap.h b/lunaix-os/includes/lunaix/mm/mmap.h new file mode 100644 index 0000000..78c12d6 --- /dev/null +++ b/lunaix-os/includes/lunaix/mm/mmap.h @@ -0,0 +1,19 @@ +#ifndef __LUNAIX_MMAP_H +#define __LUNAIX_MMAP_H + +#include +#include + +void* +mem_map(ptr_t pd_ref, + struct llist_header* regions, + void* addr, + struct v_file* file, + u32_t offset, + size_t length, + u32_t attrs); + +void* +mem_unmap(ptr_t mnt, struct llist_header* regions, void* addr, size_t length); + +#endif /* __LUNAIX_MMAP_H */