Module rustix::mm

source ·
Expand description

Memory map operations.

Structs§

Enums§

Functions§

  • posix_madvise(addr, len, advice)—Declares an expected access pattern for a memory-mapped file.
  • mlock(ptr, len)—Lock memory into RAM.
  • mlock2(ptr, len, flags)—Lock memory into RAM, with flags.
  • 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(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.
  • mremap(old_address, old_size, new_size, flags)—Resize, modify, and/or move a memory mapping.
  • mremap(old_address, old_size, new_size, MREMAP_FIXED | flags)—Resize, modify, and/or move a memory mapping to a specific address.
  • msync(addr, len, flags)—Synchronizes a memory-mapping with its backing storage.
  • munlock(ptr, len)—Unlock memory.
  • Unlocks all pages mapped into the address space of the calling process.
  • munmap(ptr, len)—Remove a memory mapping.
  • userfaultfd(flags)