pub struct Mapping {
pub pd: PdId,
pub name: String,
pub region: MrId,
pub vaddr: u64,
pub pinned: bool,
pub perms: Permission,
pub cached: bool,
pub label: SecurityLabel,
pub paddr_read: bool,
pub span: Range<usize>,
}Expand description
A memory mapping: a region in one protection domain’s address space.
Fields§
§pd: PdIdThe protection domain whose address space it is in.
name: StringIts name.
region: MrIdThe region it maps.
vaddr: u64Its virtual address, written or allocated (vaddr.rs).
pinned: boolWhether the vaddr was written, and so is checked, not allocated.
perms: PermissionAccess permissions.
cached: boolWhether the mapping is cached.
label: SecurityLabelSecurity label.
paddr_read: boolWhether a body reads m.paddr: the loader then patches the region’s
physical address into the PD, under <m>_paddr. What the C unit
defines and the SDF patches; deprecated with them.
span: Range<usize>Byte span: the mapping’s in the .fi, a channel buffer’s channel’s
in the .fis.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnsafeUnpin for Mapping
impl UnwindSafe for Mapping
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.