Skip to main content

TableMeta

Trait TableMeta 

Source
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§

Source

const PAGE_SIZE: usize

页面大小(支持4KB、16KB、64KB等)

Source

const LEVEL_BITS: &[usize]

各级索引位数数组,从最高级到最低级

Source

const MAX_BLOCK_LEVEL: usize

大页最高支持的级别

Required Associated Types§

Required Methods§

Source

fn flush(vaddr: Option<VirtAddr>)

刷新TLB

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.

Implementors§