#[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: LocalRegisterCopy<u32, Register>) -> PTEntry
pub fn new(page: PAddr, flags: LocalRegisterCopy<u32, Register>) -> PTEntry
Creates a new PTEntry.
§Arguments
page
- The physical address of the backing 4 KiB page.flags
- Additional flags for the entry.
Sourcepub fn flags(self) -> LocalRegisterCopy<u32, Register>
pub fn flags(self) -> LocalRegisterCopy<u32, Register>
Returns the flags corresponding to 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