Module nix::sys::mman

source ·

Structs

Additional parameters for mmap().
Flags for mlockall.
Configuration flags for msync.
Desired memory protection of a memory mapping.

Enums

Usage information for a range of memory to allow for performance optimizations by the kernel.

Functions

Locks all memory pages that contain part of the address range with length bytes starting at addr. Locked pages never move to the swap area.
Locks all memory pages mapped into this process’ address space. Locked pages never move to the swap area.
mmap
Calls to mmap are inherently unsafe, so they must be made in an unsafe block. Typically a higher-level abstraction will hide the unsafe interactions with the mmap’d region.
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.