x86_64::structures::paging::mapper

Trait PageTableFrameMapping

Source
pub unsafe trait PageTableFrameMapping {
    // Required method
    fn frame_to_pointer(&self, frame: PhysFrame) -> *mut PageTable;
}
Expand description

Provides a virtual address mapping for physical page table frames.

This only works if the physical address space is somehow mapped to the virtual address space, e.g. at an offset.

§Safety

This trait is unsafe to implement because the implementer must ensure that frame_to_pointer returns a valid page table pointer for any given physical frame.

Required Methods§

Source

fn frame_to_pointer(&self, frame: PhysFrame) -> *mut PageTable

Translate the given physical frame to a virtual page table pointer.

Implementors§