Module mm

Module mm 

Source

Re-exports§

pub use protection_flags::*;

Modules§

memory
protection_flags
syscalls

Structs§

FaultContinueMode
FaultCopyMode
FaultRegisterMode
FaultZeroMode
FutexTable
A table of futexes.
InflightVmsplicedPayloads
Keeps track of inflight vmsplice-ed payloads.
MapInfoCache
A singleton cache that can be used to share pinned pages across all map info queries. These queries often generate lock contention in Zircon on Starnix’s shared address space when the buffer pages are faulted in. This type holds a long-running allocation in pinned memory to get reduced Zircon VmAspace lock contention in exchange for some extra memory usage and potential lock contention for /proc/pid/status and related files. Luckily it seems that in practice files like /proc/pid/status are not regularly accessed concurrently.
Mapping
Describes a single memory mapping entry.
MappingBackingMemory
MappingFlags
MappingOptions
MappingSummary
MemoryManager
MemoryManagerForkableState
MemoryManagerState
MemoryStats
MremapFlags
NumberOfElementsRead
Holds the number of elements read by the callback to read_to_vec.
PrivateFutexKey
ProcMapsFile
Implements /proc/self/maps.
ProcSmapsFile
RemoteMemoryManager
A memory manager for another thread.
SharedFutexKey
SupportedUserFaultIoctls
UserFault
UserFaultFeatures
VmsplicePayload
A single payload that may sit in a pipe as a consequence of a vmsplice(2) to a pipe.
VmsplicePayloadSegment
A single segment of a VmsplicePayload.

Enums§

CompareExchangeResult
The result of an atomic compare/exchange operation on user memory.
DesiredAddress
The user-space address at which a mapping should be placed. Used by [MemoryManager::map].
DumpPolicy
The policy about whether the address space can be dumped.
MappingBacking
MappingName
MappingNameDiscriminant
MembarrierType
MlockPinFlavor

Constants§

GUARD_PAGE_COUNT_FOR_GROWSDOWN_MAPPINGS
ZX_VM_SPECIFIC_OVERWRITE

Statics§

PAGE_SIZE
VMEX_RESOURCE

Traits§

FutexKey
MemoryAccessor
MemoryAccessorExt
TaskMemoryAccessor

Functions§

create_anonymous_mapping_memory
Creates a memory object that can be used in an anonymous mapping for the mmap syscall.
init_usercopy
Initializes the usercopy utilities.
read_to_array
Performs a read into an array using the provided read function.
read_to_object_as_bytes
Performs a read into an object using the provided read function.
read_to_vec
Performs a read into a Vec using the provided read function.
zxio_maybe_faultable_copy_impl
Provides an implementation for zxio’s zxio_maybe_faultable_copy that supports catching faults.

Type Aliases§

IOVecPtr

Unions§

MappingNamePayload