Struct page_table::PageTable
source · [−]#[repr(C, align(4096))]pub struct PageTable<Meta: MmuMeta>(_);Expand description
页表。
Implementations
sourceimpl<Meta: MmuMeta> PageTable<Meta>
impl<Meta: MmuMeta> PageTable<Meta>
pub const ZERO: Self = _
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn as_ptr(&self) -> *const Pte<Meta>
pub fn set_entry(
&mut self,
vaddr: VAddr,
entry: Pte<Meta>,
level: usize
) -> Result<(), EntryError>
pub fn query(&self, addr: VAddr, level: u8) -> PtQuery<Meta>
Trait Implementations
Auto Trait Implementations
impl<Meta> RefUnwindSafe for PageTable<Meta> where
Meta: RefUnwindSafe,
impl<Meta> Send for PageTable<Meta> where
Meta: Send,
impl<Meta> Sync for PageTable<Meta> where
Meta: Sync,
impl<Meta> Unpin for PageTable<Meta> where
Meta: Unpin,
impl<Meta> UnwindSafe for PageTable<Meta> where
Meta: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more