Trait page_table::PagingMetaData
source · pub trait PagingMetaData: Sync + Send + Sized {
const LEVELS: usize;
const PA_MAX_BITS: usize;
const VA_MAX_BITS: usize;
const PA_MAX_ADDR: usize = _;
// Provided methods
fn paddr_is_valid(paddr: usize) -> bool { ... }
fn vaddr_is_valid(vaddr: usize) -> bool { ... }
}
Expand description
The architecture-dependent metadata that must be provided for
PageTable64
.
Required Associated Constants§
sourceconst PA_MAX_BITS: usize
const PA_MAX_BITS: usize
The maximum number of bits of physical address.
sourceconst VA_MAX_BITS: usize
const VA_MAX_BITS: usize
The maximum number of bits of virtual address.
Provided Associated Constants§
sourceconst PA_MAX_ADDR: usize = _
const PA_MAX_ADDR: usize = _
The maximum physical address.
Provided Methods§
sourcefn paddr_is_valid(paddr: usize) -> bool
fn paddr_is_valid(paddr: usize) -> bool
Whether a given physical address is valid.
sourcefn vaddr_is_valid(vaddr: usize) -> bool
fn vaddr_is_valid(vaddr: usize) -> bool
Whether a given virtual address is valid.
Object Safety§
This trait is not object safe.
Implementors§
source§impl PagingMetaData for A64PagingMetaData
Available on AArch64 only.
impl PagingMetaData for A64PagingMetaData
Available on AArch64 only.
source§impl PagingMetaData for Sv39MetaData
Available on RISC-V RV32 or RISC-V RV64 only.
impl PagingMetaData for Sv39MetaData
Available on RISC-V RV32 or RISC-V RV64 only.
source§impl PagingMetaData for Sv48MetaData
Available on RISC-V RV32 or RISC-V RV64 only.
impl PagingMetaData for Sv48MetaData
Available on RISC-V RV32 or RISC-V RV64 only.
source§impl PagingMetaData for X64PagingMetaData
Available on x86-64 only.
impl PagingMetaData for X64PagingMetaData
Available on x86-64 only.