pub struct LocalMap<'a> {
pte_ptr: *mut PageTableEntry,
va: u64,
_dummy: PhantomData<&'a ()>,
}
Expand description
Local Map. Provides a VA region where arbitrary physical addresses can be mapped into the virtual address space on the current processor.
Fields§
§pte_ptr: *mut PageTableEntry
§va: u64
§_dummy: PhantomData<&'a ()>
Implementations§
Source§impl<'a> LocalMap<'a>
impl<'a> LocalMap<'a>
Sourcepub fn map_pages<'b>(
&'b mut self,
range: MemoryRange,
confidential: bool,
) -> LocalMapMapping<'a, 'b>
pub fn map_pages<'b>( &'b mut self, range: MemoryRange, confidential: bool, ) -> LocalMapMapping<'a, 'b>
Maps in a contiguous page range into the local VA space.
range
specifies the address range to map.
confidential
indicates whether a confidential mapping is required.
fn local_map_entry(&self) -> &'a mut PageTableEntry
Auto Trait Implementations§
impl<'a> Freeze for LocalMap<'a>
impl<'a> RefUnwindSafe for LocalMap<'a>
impl<'a> !Send for LocalMap<'a>
impl<'a> !Sync for LocalMap<'a>
impl<'a> Unpin for LocalMap<'a>
impl<'a> UnwindSafe for LocalMap<'a>
Blanket Implementations§
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