#[repr(transparent)]pub struct PDEntry(pub u32);
Expand description
A PD Entry consists of an address and a bunch of flags.
Tuple Fields
0: u32
Implementations
sourceimpl PDEntry
impl PDEntry
sourcepub fn new(pt: PAddr, flags: PDFlags) -> PDEntry
pub fn new(pt: PAddr, flags: PDFlags) -> PDEntry
Creates a new PDEntry.
Arguments
pt
- The physical address of the page table.flags
- Additional flags for the entry.
Implementation notes
This doesn’t support PSE-36 or PSE-40.
sourcepub fn is_present(self) -> bool
pub fn is_present(self) -> bool
Present; must be 1 to map a 4-MByte page.
sourcepub fn is_writeable(self) -> bool
pub fn is_writeable(self) -> bool
Read/write; if 0, writes may not be allowed to the 4-MByte page referenced by this entry.
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 4-MByte page referenced 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 software has accessed the 4-MByte page referenced by this entry.
sourcepub fn is_dirty(self) -> bool
pub fn is_dirty(self) -> bool
Dirty; indicates whether software has written to the 4-MByte page referenced by this entry.
sourcepub fn is_page(self) -> bool
pub fn is_page(self) -> bool
Page size; if set this entry maps a 4-MByte page; otherwise, this entry references a page directory.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PDEntry
impl Send for PDEntry
impl Sync for PDEntry
impl Unpin for PDEntry
impl UnwindSafe for PDEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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