pub struct PageTableEntry { /* private fields */ }Expand description
Page table entry
Implementations§
Source§impl PageTableEntry
impl PageTableEntry
Sourcepub const fn is_present(&self) -> bool
pub const fn is_present(&self) -> bool
Check if the entry is present
Sourcepub fn frame(&self) -> Option<FrameNumber>
pub fn frame(&self) -> Option<FrameNumber>
Get the physical frame this entry points to
Sourcepub fn addr(&self) -> Option<PhysicalAddress>
pub fn addr(&self) -> Option<PhysicalAddress>
Get the address this entry points to
Sourcepub fn set(&mut self, frame: FrameNumber, flags: PageFlags)
pub fn set(&mut self, frame: FrameNumber, flags: PageFlags)
Set this entry to map to a frame with given flags
Sourcepub fn set_addr(&mut self, addr: PhysicalAddress, flags: PageFlags)
pub fn set_addr(&mut self, addr: PhysicalAddress, flags: PageFlags)
Set this entry to map to an address with given flags
Trait Implementations§
Source§impl Clone for PageTableEntry
impl Clone for PageTableEntry
Source§fn clone(&self) -> PageTableEntry
fn clone(&self) -> PageTableEntry
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageTableEntry
impl Debug for PageTableEntry
Source§impl PageTableEntryExt for PageTableEntry
impl PageTableEntryExt for PageTableEntry
fn is_user_accessible(&self) -> bool
impl Copy for PageTableEntry
Auto Trait Implementations§
impl Freeze for PageTableEntry
impl RefUnwindSafe for PageTableEntry
impl Send for PageTableEntry
impl Sync for PageTableEntry
impl Unpin for PageTableEntry
impl UnwindSafe for PageTableEntry
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)