Module base::sys::linux::mmap

source ·
Expand description

The mmap module provides a safe interface to mmap memory and ensures unmap is called when the mmap object leaves scope.

Structs

  • Wraps an anonymous shared memory mapping in the current process. Provides RAII semantics including munmap when no longer needed.
  • Tracks Fixed Memory Maps within an anonymous memory-mapped fixed-sized arena in the current process.

Traits

Functions

  • Validates that offset..offset+range_size lies within the bounds of a memory mapping of mmap_size bytes. Also checks for any overflow.