Module mm

Source
Expand description

Memory map operations.

Structs§

MapFlags
MAP_* flags for use with mmap.
MprotectFlags
PROT_* flags for use with mprotect.
MsyncFlags
MS_* flags for use with msync.
ProtFlags
PROT_* flags for use with mmap.

Enums§

Advice
POSIX_MADV_* constants for use with madvise.

Functions§

madvise
posix_madvise(addr, len, advice)—Declares an expected access pattern for a memory-mapped file.
mlock
mlock(ptr, len)—Lock memory into RAM.
mmap
mmap(ptr, len, prot, flags, fd, offset)—Create a file-backed memory mapping.
mmap_anonymous
mmap(ptr, len, prot, MAP_ANONYMOUS | flags, -1, 0)—Create an anonymous memory mapping.
mprotect
mprotect(ptr, len, flags)—Change the protection flags of a region of memory.
msync
msync(addr, len, flags)—Synchronizes a memory-mapping with its backing storage.
munlock
munlock(ptr, len)—Unlock memory.
munmap
munmap(ptr, len)—Remove a memory mapping.