#[repr(transparent)]pub struct PDPTEntry(pub u64);
Expand description
A PDPT Entry consists of an address and a bunch of flags.
Tuple Fields
0: u64
Implementations
sourceimpl PDPTEntry
impl PDPTEntry
sourcepub fn new(pd: PAddr, flags: PDPTFlags) -> PDPTEntry
pub fn new(pd: PAddr, flags: PDPTFlags) -> PDPTEntry
Creates a new PDPTEntry.
Arguments
pd
- The physical address of the page directory.flags
- Additional flags for the entry.
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 1-GByte region controlled by this entry.
sourcepub fn is_user_mode_allowed(self) -> bool
pub fn is_user_mode_allowed(self) -> bool
User/supervisor; user-mode accesses are not allowed to the 1-GByte 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.
sourcepub fn is_page_level_cache_disabled(self) -> bool
pub fn is_page_level_cache_disabled(self) -> bool
Page-level cache disable.
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_pat(self) -> bool
pub fn is_pat(self) -> bool
Indirectly determines the memory type used to access the 1-GByte page referenced by this entry. if not PS this is ignored.
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 512-GByte region.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PDPTEntry
impl Send for PDPTEntry
impl Sync for PDPTEntry
impl Unpin for PDPTEntry
impl UnwindSafe for PDPTEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more