#[repr(transparent)]pub struct PML5Entry(pub u64);
Expand description
A PML5 Entry consists of an address and a bunch of flags.
Tuple Fields§
§0: u64
Implementations§
Source§impl PML5Entry
impl PML5Entry
Sourcepub fn new(pml4: PAddr, flags: PML5Flags) -> PML5Entry
pub fn new(pml4: PAddr, flags: PML5Flags) -> PML5Entry
Creates a new PML5Entry.
§Arguments
pml4
- The physical address of the PML4 table that this entry points to.flags
- Additional flags for the entry.
pub fn flags(self) -> PML5Flags
Sourcepub fn is_present(self) -> bool
pub fn is_present(self) -> bool
Is page present?
Sourcepub fn is_writeable(self) -> bool
pub fn is_writeable(self) -> bool
Read/write; if 0, writes may not be allowed to the 256-TByte region, controlled by this entry (see Section 4.6)
Sourcepub fn is_user_mode_allowed(self) -> bool
pub fn is_user_mode_allowed(self) -> bool
User/supervisor; if 0, user-mode accesses are not allowed to the 256-TByte region controlled by this entry.
Sourcepub fn is_page_write_through(self) -> bool
pub fn is_page_write_through(self) -> bool
Page-level write-through; indirectly determines the memory type used to access the PML4 table referenced by this entry.
Sourcepub fn is_page_level_cache_disabled(self) -> bool
pub fn is_page_level_cache_disabled(self) -> bool
Page-level cache disable; indirectly determines the memory type used to access the PML4 table referenced by this entry.
Sourcepub fn is_accessed(self) -> bool
pub fn is_accessed(self) -> bool
Accessed; indicates whether this entry has been used for linear-address translation.
Sourcepub fn is_instruction_fetching_disabled(self) -> bool
pub fn is_instruction_fetching_disabled(self) -> bool
If IA32_EFER.NXE = 1, execute-disable. If 1, instruction fetches are not allowed from the 256-TByte region.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PML5Entry
impl RefUnwindSafe for PML5Entry
impl Send for PML5Entry
impl Sync for PML5Entry
impl Unpin for PML5Entry
impl UnwindSafe for PML5Entry
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