Struct aarch64_paging::paging::Descriptor
source · #[repr(C)]pub struct Descriptor(/* private fields */);
Expand description
An entry in a page table.
A descriptor may be:
- Invalid, i.e. the virtual address range is unmapped
- A page mapping, if it is in the lowest level page table.
- A block mapping, if it is not in the lowest level page table.
- A pointer to a lower level pagetable, if it is not in the lowest level page table.
Implementations§
source§impl Descriptor
impl Descriptor
sourcepub fn flags(self) -> Option<Attributes>
pub fn flags(self) -> Option<Attributes>
Returns the flags of this page table entry, or None
if its state does not
contain a valid set of flags.
sourcepub fn modify_flags(&mut self, set: Attributes, clear: Attributes)
pub fn modify_flags(&mut self, set: Attributes, clear: Attributes)
Modifies the page table entry by setting or clearing its flags. Panics when attempting to convert a table descriptor into a block/page descriptor or vice versa - this is not supported via this API.
sourcepub fn is_valid(self) -> bool
pub fn is_valid(self) -> bool
Returns true
if Attributes::VALID
is set on this entry, e.g. if the entry is mapped.
sourcepub fn is_table_or_page(self) -> bool
pub fn is_table_or_page(self) -> bool
Returns true
if this is a valid entry pointing to a next level translation table or a page.
Trait Implementations§
source§impl Clone for Descriptor
impl Clone for Descriptor
source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
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 Descriptor
impl Debug for Descriptor
source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
source§fn eq(&self, other: &Descriptor) -> bool
fn eq(&self, other: &Descriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Descriptor
impl Eq for Descriptor
impl StructuralEq for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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