pub unsafe fn mmap_anonymous(
    ptr: *mut c_void,
    len: usize,
    prot: ProtFlags,
    flags: MapFlags
) -> Result<*mut c_void>
Expand description

mmap(ptr, len, prot, MAP_ANONYMOUS | flags, -1, 0)—Create an anonymous memory mapping.

For file-backed mappings, see mmap.

Safety

Raw pointers and lots of special semantics.

References