#[repr(transparent)]pub struct PTEntry(pub u32);
Expand description
A PT Entry consists of an address and a bunch of flags.
Tuple Fields§
§0: u32
Implementations§
Source§impl PTEntry
impl PTEntry
Sourcepub fn new(page: PAddr, flags: PTFlags) -> PTEntry
pub fn new(page: PAddr, flags: PTFlags) -> PTEntry
Creates a new PTEntry.
§Arguments
page
- The physical address of the backing 4 KiB page.flags
- Additional flags for the entry.
Sourcepub fn is_present(self) -> bool
pub fn is_present(self) -> bool
Present; must be 1 to map a 4-KByte 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-KByte 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-KByte 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-KByte 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-KByte page referenced by this entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PTEntry
impl RefUnwindSafe for PTEntry
impl Send for PTEntry
impl Sync for PTEntry
impl Unpin for PTEntry
impl UnwindSafe for PTEntry
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