Struct aarch64_paging::linearmap::LinearTranslation
source · pub struct LinearTranslation { /* private fields */ }
Expand description
Linear mapping, where every virtual address is either unmapped or mapped to an IPA with a fixed offset.
Implementations§
Trait Implementations§
source§impl Clone for LinearTranslation
impl Clone for LinearTranslation
source§fn clone(&self) -> LinearTranslation
fn clone(&self) -> LinearTranslation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinearTranslation
impl Debug for LinearTranslation
source§impl PartialEq for LinearTranslation
impl PartialEq for LinearTranslation
source§fn eq(&self, other: &LinearTranslation) -> bool
fn eq(&self, other: &LinearTranslation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Translation for LinearTranslation
impl Translation for LinearTranslation
source§fn allocate_table(&self) -> (NonNull<PageTable>, PhysicalAddress)
fn allocate_table(&self) -> (NonNull<PageTable>, PhysicalAddress)
Allocates a zeroed page, which is already mapped, to be used for a new subtable of some
pagetable. Returns both a pointer to the page and its physical address.
source§unsafe fn deallocate_table(&self, page_table: NonNull<PageTable>)
unsafe fn deallocate_table(&self, page_table: NonNull<PageTable>)
Deallocates the page which was previous allocated by
allocate_table
. Read moresource§fn physical_to_virtual(&self, pa: PhysicalAddress) -> NonNull<PageTable>
fn physical_to_virtual(&self, pa: PhysicalAddress) -> NonNull<PageTable>
Given the physical address of a subtable, returns the virtual address at which it is mapped.
impl Copy for LinearTranslation
impl Eq for LinearTranslation
impl StructuralEq for LinearTranslation
impl StructuralPartialEq for LinearTranslation
Auto Trait Implementations§
impl RefUnwindSafe for LinearTranslation
impl Send for LinearTranslation
impl Sync for LinearTranslation
impl Unpin for LinearTranslation
impl UnwindSafe for LinearTranslation
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