Function physical_to_virtual

Source
pub fn physical_to_virtual(address: PAddr) -> VAddr
Expand description

Access a given physical address through the physical mapping. This cannot be used until the kernel page tables have been switched to.

ยงSafety

This itself is safe, because to cause memory unsafety a raw pointer must be created and accessed from the VAddr, which is unsafe.