Crate page_table

source ·
Expand description

This crate provides generic, unified, architecture-independent, and OS-free page table structures for various hardware architectures.

The core struct is PageTable64<M, PTE, IF>. OS-functions and architecture-dependent types are provided by generic parameters:

  • M: The architecture-dependent metadata, requires to implement the PagingMetaData trait.
  • PTE: The architecture-dependent page table entry, requires to implement the GenericPTE trait.
  • IF: OS-functions such as physical memory allocation, requires to implement the PagingIf trait.

Currently supported architectures and page table structures:

Re-exports

Modules

  • AArch64 specific page table structures.
  • RISC-V specific page table structures.
  • x86 specific page table structures.

Structs

  • A generic page table struct for 64-bit platform.

Enums

  • The page sizes supported by the hardware page table.
  • The error type for page table operation failures.

Traits

Type Aliases

  • The specialized Result type for page table operations.