Expand description
Memory map operations.
Structs§
MAP_*
flags for use withmmap
.PROT_*
flags for use withmprotect
.MS_*
flags for use withmsync
.PROT_*
flags for use withmmap
.
Enums§
POSIX_MADV_*
constants for use withmadvise
.
Functions§
posix_madvise(addr, len, advice)
—Declares an expected access pattern for a memory-mapped file.mlock(ptr, len)
—Lock memory into RAM.- mmap⚠
mmap(ptr, len, prot, flags, fd, offset)
—Create a file-backed memory mapping. mmap(ptr, len, prot, MAP_ANONYMOUS | flags, -1, 0)
—Create an anonymous memory mapping.mprotect(ptr, len, flags)
—Change the protection flags of a region of memory.msync(addr, len, flags)
—Synchronizes a memory-mapping with its backing storage.munlock(ptr, len)
—Unlock memory.munmap(ptr, len)
—Remove a memory mapping.