[][src]Trait x86_64::structures::paging::mapper::PhysToVirt

pub trait PhysToVirt {
    fn phys_to_virt(&self, phys_frame: PhysFrame) -> *mut PageTable;
}

Trait for converting a physical address to a virtual one.

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

Required methods

fn phys_to_virt(&self, phys_frame: PhysFrame) -> *mut PageTable

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

Loading content...

Implementors

impl<T> PhysToVirt for T where
    T: Fn(PhysFrame) -> *mut PageTable
[src]

Loading content...