Function get_pde_for_va

Source
unsafe fn get_pde_for_va(va: u64) -> &'static mut PageTableEntry
Expand description

Returns a reference to the PDE corresponding to a virtual address.

§Safety

This routine requires the caller to ensure that the VA is a valid one for which the paging hierarchy was configured by the file loader (the page directory must exist). If this is not true this routine will panic rather than corrupt the address space.