Skip to main content

Module paging

Module paging 

Expand description

Abstractions for page tables and other paging related structures.

Page tables translate virtual memory “pages” to physical memory “frames”.

Re-exports§

pub use paging::MappedPageTable;
pub use paging::OffsetPageTable;
pub use paging::RecursivePageTable;

Modules§

frame
Abstractions for default-sized and huge physical memory frames.
mapper
Abstractions for reading and modifying the mapping of pages.
page
Abstractions for default-sized and huge virtual memory pages.
page_table
Abstractions for page tables and page table entries.

Structs§

Page
A virtual memory page.
PageOffset
A 12-bit offset into a 4KiB Page.
PageTable
Represents a page table.
PageTableFlags
Possible flags for a page table entry.
PageTableIndex
A 9-bit index into a page table.
PhysFrame
A physical memory frame.

Enums§

Size1GiB
A “giant” 1GiB page.
Size2MiB
A “huge” 2MiB page.
Size4KiB
A standard 4KiB page.

Traits§

FrameAllocator
A trait for types that can allocate a frame of memory.
FrameDeallocator
A trait for types that can deallocate a frame of memory.
Mapper
A trait for common page table operations on pages of size S.
PageSize
Trait for abstracting over the three possible page sizes on x86_64, 4KiB, 2MiB, 1GiB.
Translate
Provides methods for translating virtual addresses.