ptr_t mmap_file(mm_context_t *ctx, ptr_t hint_addr, mmap_flags_t flags, vm_flags vm_flags, size_t n_pages, io_t *io, off_t offset)
Map a file into the current process's address space.
ptr_t mmap_anonymous(mm_context_t *ctx, ptr_t hint_addr, mmap_flags_t flags, vm_flags vm_flags, size_t n_pages)
Map a page into the current process's address space.
bool vm_protect(mm_context_t *mmctx, ptr_t addr, size_t size, vm_flags perm)
Change the permissions of a mapping.