Function linux_api::mman::mmap_raw

source ·
pub unsafe fn mmap_raw(
    addr: kernel_ulong_t,
    length: kernel_ulong_t,
    prot: kernel_ulong_t,
    flags: kernel_ulong_t,
    fd: kernel_ulong_t,
    off: kernel_ulong_t,
) -> Result<kernel_ulong_t, Errno>
Expand description

Make the mmap syscall. See mmap(2).

Signature from SYSCALL_DEFINE6(mmap, ..., in linux’s arch/x86/kernel/sys_x86_64.c.

§Safety

Can clobber existing memory. See mmap(2).