Module nix::sys::mman
#[cfg(not(target_os = "redox"))]
Documentation
Memory management declarations.
Structs
Enums
Usage information for a range of memory to allow for performance optimizations by the kernel.
Functions
madvise This function is unsafe to use
give advice about use of memory
mlock This function is unsafe to use
Locks all memory pages that contain part of the address range with length
bytes starting at addr
.
Locks all memory pages mapped into this process’ address space.
mmap This function is unsafe to use
allocate memory, or map files or devices into memory
mprotect This function is unsafe to use
Set protection of memory mapping.
mremap This function is unsafe to use any(target_os = "linux", target_os = "netbsd")
Expands (or shrinks) an existing memory mapping, potentially moving it at the same time.
msync This function is unsafe to use
synchronize a mapped region
munlock This function is unsafe to use
Unlocks all memory pages that contain part of the address range with
length
bytes starting at addr
.
Unlocks all memory pages mapped into this process’ address space.
munmap This function is unsafe to use
remove a mapping
shm_open not(target_os = "android")
Creates and opens a new, or opens an existing, POSIX shared memory object.
shm_unlink not(target_os = "android")
Performs the converse of shm_open
, removing an object previously created.