Expand description
Memory map operations.
Structs§
- MapFlags
MAP_*flags for use withmmap.- Mlock
AllFlags MCL_*flags for use withmlockall.- Mlock
Flags MLOCK_*flags for use withmlock_with.- Mprotect
Flags PROT_*flags for use withmprotect.- Mremap
Flags MREMAP_*flags for use withmremap.- Msync
Flags MS_*flags for use withmsync.- Prot
Flags PROT_*flags for use withmmap.- Userfaultfd
Flags O_*flags for use withuserfaultfd.
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.- mlock_
with ⚠ mlock2(ptr, len, flags)—Lock memory into RAM, with flags.- mlockall
- Locks all pages mapped into the address space of the calling process.
- 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.- mremap⚠
mremap(old_address, old_size, new_size, flags)—Resize, modify, and/or move a memory mapping.- mremap_
fixed ⚠ mremap(old_address, old_size, new_size, MREMAP_FIXED | flags)—Resize, modify, and/or move a memory mapping to a specific address.- msync⚠
msync(addr, len, flags)—Synchronizes a memory-mapping with its backing storage.- munlock⚠
munlock(ptr, len)—Unlock memory.- munlockall
- Unlocks all pages mapped into the address space of the calling process.
- munmap⚠
munmap(ptr, len)—Remove a memory mapping.- userfaultfd⚠
userfaultfd(flags)—Create userspace page-fault handler.