pub struct PteInfo<P: PageTableEntry> {
pub level: usize,
pub vaddr: VirtAddr,
pub is_final_mapping: bool,
pub pte: P,
}Expand description
页表项信息,包含原PTE对象
Fields§
§level: usize页表级别(1=叶子页表,数字越大级别越高)
vaddr: VirtAddr此页表项对应的虚拟地址
is_final_mapping: bool此页表项是否为最终映射(叶子级别或大页)
- true: 有效的叶子级别映射或大页映射
- false: 无效项或中间级别的页表指针
pte: P原页表项对象
Trait Implementations§
impl<P: Copy + PageTableEntry> Copy for PteInfo<P>
Auto Trait Implementations§
impl<P> Freeze for PteInfo<P>where
P: Freeze,
impl<P> RefUnwindSafe for PteInfo<P>where
P: RefUnwindSafe,
impl<P> Send for PteInfo<P>
impl<P> Sync for PteInfo<P>
impl<P> Unpin for PteInfo<P>where
P: Unpin,
impl<P> UnwindSafe for PteInfo<P>where
P: UnwindSafe,
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