Function phys_to_virt

Source
pub fn phys_to_virt(paddr: PhysAddr) -> VirtAddr
Expand description

Translates a physical address to a virtual address.

It is just an easy way to access physical memory when virtual memory is enabled. The mapping may not be unique, there can be multiple vaddrs mapped to that paddr.