#[repr(align(4096))]pub struct PageTableRoot([Pml4e; 512]);Expand description
A page table root.
It wraps the Pml4e array to ensure page table align to 4096.
Note that it is not allowed to modified the larger indices than
Self::KBASE, which are reserved for kernel address.
Tuple Fields§
§0: [Pml4e; 512]Implementations§
Source§impl PageTableRoot
impl PageTableRoot
Sourcepub fn new_boxed() -> Box<Self>
pub fn new_boxed() -> Box<Self>
Create a empty PageTableRoot.
Sourcepub fn new_boxed_with_kernel_addr() -> Box<Self>
pub fn new_boxed_with_kernel_addr() -> Box<Self>
Create a new PageTableRoot that allowed to access the kernel
addresses.
Trait Implementations§
Source§impl Debug for PageTableRoot
impl Debug for PageTableRoot
Source§impl Deref for PageTableRoot
impl Deref for PageTableRoot
Source§impl Index<usize> for PageTableRoot
impl Index<usize> for PageTableRoot
Auto Trait Implementations§
impl Freeze for PageTableRoot
impl RefUnwindSafe for PageTableRoot
impl Send for PageTableRoot
impl Sync for PageTableRoot
impl Unpin for PageTableRoot
impl UnwindSafe for PageTableRoot
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