Re-exports§
pub use protection_flags::*;
Modules§
Structs§
- Fault
Continue Mode - Fault
Copy Mode - Fault
Register Mode - Fault
Zero Mode - Futex
Table - A table of futexes.
- Inflight
Vmspliced Payloads - Keeps track of inflight vmsplice-ed payloads.
- MapInfo
Cache - 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.
- Mapping
Backing Memory - Mapping
Flags - Mapping
Options - Mapping
Summary - Memory
Manager - Memory
Manager Forkable State - Memory
Manager State - Memory
Stats - Mremap
Flags - Number
OfElements Read - Holds the number of elements read by the callback to
read_to_vec. - Private
Futex Key - Proc
Maps File - Implements
/proc/self/maps. - Proc
Smaps File - Remote
Memory Manager - A memory manager for another thread.
- Shared
Futex Key - Supported
User Fault Ioctls - User
Fault - User
Fault Features - Vmsplice
Payload - A single payload that may sit in a pipe as a consequence of a
vmsplice(2)to a pipe. - Vmsplice
Payload Segment - A single segment of a
VmsplicePayload.
Enums§
- Compare
Exchange Result - The result of an atomic compare/exchange operation on user memory.
- Desired
Address - The user-space address at which a mapping should be placed. Used by [
MemoryManager::map]. - Dump
Policy - The policy about whether the address space can be dumped.
- Mapping
Backing - Mapping
Name - Mapping
Name Discriminant - Membarrier
Type - Mlock
PinFlavor
Constants§
Statics§
Traits§
Functions§
- create_
anonymous_ mapping_ memory - Creates a memory object that can be used in an anonymous mapping for the
mmapsyscall. - 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
Vecusing the provided read function. - zxio_
maybe_ ⚠faultable_ copy_ impl - Provides an implementation for zxio’s
zxio_maybe_faultable_copythat supports catching faults.