pub struct Pxe {
pub pfn: Pfn,
pub flags: PxeFlags,
}
Expand description
Fields§
§pfn: Pfn
The PFN of the next table or the final page.
flags: PxeFlags
PXE flags.
Implementations§
Source§impl Pxe
impl Pxe
Sourcepub fn present(&self) -> bool
pub fn present(&self) -> bool
Is the bit Present/Valid turned on?
§Examples
let p = Pxe::new(
Pfn::new(0x6d600),
PxeFlags::Present
);
assert_eq!(p.present(), true);
let np = Pxe::new(
Pfn::new(0x1337),
PxeFlags::UserAccessible
);
assert_eq!(np.present(), false);
Sourcepub fn large_page(&self) -> bool
pub fn large_page(&self) -> bool
Is it a large page?
§Examples
let p = Pxe::new(
Pfn::new(0x6d600),
PxeFlags::LargePage
);
assert_eq!(p.large_page(), true);
let np = Pxe::new(
Pfn::new(0x1337),
PxeFlags::UserAccessible
);
assert_eq!(np.large_page(), false);
Sourcepub fn transition(&self) -> bool
pub fn transition(&self) -> bool
Is it a transition PTE?
§Examples
let p = Pxe::from(0x166B7880);
let np = Pxe::from(0xA000000077AF867);
assert_eq!(p.transition(), true);
assert_eq!(np.transition(), false);
Trait Implementations§
Source§impl Ord for Pxe
impl Ord for Pxe
Source§impl PartialOrd for Pxe
impl PartialOrd for Pxe
impl Copy for Pxe
impl Eq for Pxe
impl StructuralPartialEq for Pxe
Auto Trait Implementations§
impl Freeze for Pxe
impl RefUnwindSafe for Pxe
impl Send for Pxe
impl Sync for Pxe
impl Unpin for Pxe
impl UnwindSafe for Pxe
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more