#[repr(C)]pub struct PTDesc(pub u64);
Tuple Fields§
§0: u64
Implementations§
source§impl PTDesc
impl PTDesc
pub fn new(data: u64) -> PTDesc
pub fn get_mut(&mut self) -> &mut Self
pub fn get(&self) -> u64
pub fn get_masked(&self, mask: u64) -> u64
pub fn get_masked_value(&self, mask: u64) -> u64
pub fn set(&mut self, val: u64) -> &mut Self
pub fn set_masked(&mut self, mask: u64, val: u64) -> &mut Self
pub fn set_masked_value(&mut self, mask: u64, val: u64) -> &mut Self
pub fn set_bits(&mut self, mask: u64) -> &mut Self
pub fn clear_bits(&mut self, mask: u64) -> &mut Self
pub const Reserved: u64 = 540_431_955_284_459_520u64
pub const UXN: u64 = 18_014_398_509_481_984u64
pub const PXN: u64 = 9_007_199_254_740_992u64
pub const ADDR_BLK_L1: u64 = 281_473_902_968_832u64
pub const ADDR_BLK_L2: u64 = 281_474_974_613_504u64
pub const ADDR_TBL_OR_PAGE: u64 = 281_474_976_706_560u64
pub const AF: u64 = 1_024u64
pub const SH: u64 = 768u64
pub const AP: u64 = 192u64
pub const NS: u64 = 32u64
pub const INDX: u64 = 28u64
pub const TYPE: u64 = 2u64
pub const VALID: u64 = 1u64
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PTDesc
impl Send for PTDesc
impl Sync for PTDesc
impl Unpin for PTDesc
impl UnwindSafe for PTDesc
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