pub trait TableMeta:
Sync
+ Send
+ Clone
+ Copy
+ 'static {
type P: PageTableEntry;
const PAGE_SIZE: usize;
const LEVEL_BITS: &[usize];
const MAX_BLOCK_LEVEL: usize;
// Required method
fn flush(vaddr: Option<VirtAddr>);
}Required Associated Constants§
Sourceconst LEVEL_BITS: &[usize]
const LEVEL_BITS: &[usize]
各级索引位数数组,从最高级到最低级
Sourceconst MAX_BLOCK_LEVEL: usize
const MAX_BLOCK_LEVEL: usize
大页最高支持的级别
Required Associated Types§
type P: PageTableEntry
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.