Skip to main content

Module vm_address_region

Module vm_address_region 

Source

Structs§

MapResult
Result of calling VmAddressRegion::create_vm_mapping.
VmAddressRegion
A contiguous region of the virtual address space.

Enums§

MemoryPriority
Memory priorities that can be applied to VMARs and mappings.
VmAddressRegionOpChildren
Whether to operate on children when unmapping or protecting.

Constants§

VMAR_CAN_RWX_FLAGS
Mask of read, write, and execute permission flags.
VMAR_FLAG_ALLOW_FAULTS
Allow VMO backings that could result in faults.
VMAR_FLAG_CAN_MAP_EXECUTE
Allow VmMappings to be created inside the region with execute permissions.
VMAR_FLAG_CAN_MAP_READ
Allow VmMappings to be created inside the region with read permissions.
VMAR_FLAG_CAN_MAP_SPECIFIC
Allow VmMappings to be created inside the new region with the SPECIFIC or OFFSET_IS_UPPER_LIMIT flag.
VMAR_FLAG_CAN_MAP_WRITE
Allow VmMappings to be created inside the region with write permissions.
VMAR_FLAG_COMPACT
When randomly allocating subregions, reduce sprawl by placing allocations near each other.
VMAR_FLAG_DEBUG_DYNAMIC_KERNEL_MAPPING
Opt this VMAR out of certain debugging checks.
VMAR_FLAG_FAULT_BEYOND_STREAM_SIZE
Memory accesses past the stream size rounded up to the page boundary will fault.
VMAR_FLAG_OFFSET_IS_UPPER_LIMIT
Treat the offset as an upper limit when allocating a VMO or child VMAR.
VMAR_FLAG_REQUIRE_NON_RESIZABLE
Require that VMO backing the mapping is non-resizable.
VMAR_FLAG_SPECIFIC
Request that the new region be at the specified offset in its parent region.
VMAR_FLAG_SPECIFIC_OVERWRITE
Like VMAR_FLAG_SPECIFIC, but permits overwriting existing mappings.