Expand description
Memory map operations.
Structs§
- MapFlags
MAP_*flags for use withmmap.- Mprotect
Flags PROT_*flags for use withmprotect.- Msync
Flags MS_*flags for use withmsync.- Prot
Flags PROT_*flags for use withmmap.
Enums§
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.