Enum x86_64::structures::paging::mapper::TranslateResult [−][src]
pub enum TranslateResult { Mapped { frame: MappedFrame, offset: u64, flags: PageTableFlags, }, NotMapped, InvalidFrameAddress(PhysAddr), }
Expand description
The return value of the Translate::translate
function.
If the given address has a valid mapping, a Frame4KiB
, Frame2MiB
, or Frame1GiB
variant
is returned, depending on the size of the mapped page. The remaining variants indicate errors.
Variants
The virtual address is mapped to a physical frame.
Show fields
Fields of Mapped
frame: MappedFrame
The mapped frame.
offset: u64
The offset whithin the mapped frame.
flags: PageTableFlags
The entry flags in the lowest-level page table.
Flags of higher-level page table entries are not included here, but they can still affect the effective flags for an address, for example when the WRITABLE flag is not set for a level 3 entry.
The given virtual address is not mapped to a physical frame.
InvalidFrameAddress(PhysAddr)
The page table entry for the given virtual address points to an invalid physical address.