#[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§
Source§impl PDEntry
impl PDEntry
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 Freeze for PDEntry
impl RefUnwindSafe for PDEntry
impl Send for PDEntry
impl Sync for PDEntry
impl Unpin for PDEntry
impl UnwindSafe for PDEntry
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