#[repr(C)]pub struct S2TTE(pub u64);
Tuple Fields§
§0: u64
Implementations§
source§impl S2TTE
impl S2TTE
pub fn new(data: u64) -> S2TTE
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 NS: u64 = 36_028_797_018_963_968u64
pub const XN: u64 = 18_014_398_509_481_984u64
pub const ADDR_L0_PAGE: u64 = 280_925_220_896_768u64
pub const ADDR_L1_PAGE: u64 = 281_473_902_968_832u64
pub const ADDR_L2_PAGE: u64 = 281_474_974_613_504u64
pub const ADDR_L3_PAGE: u64 = 281_474_976_706_560u64
pub const ADDR_FULL: u64 = 72_057_594_037_923_840u64
pub const AF: u64 = 1_024u64
pub const SH: u64 = 768u64
pub const AP: u64 = 192u64
pub const INVALID_RIPAS: u64 = 64u64
pub const INVALID_HIPAS: u64 = 60u64
pub const MEMATTR: u64 = 60u64
pub const DESC_TYPE: u64 = 3u64
pub const PAGE_FLAGS: u64 = 4_095u64
source§impl S2TTE
impl S2TTE
pub fn get_s2tte( rd: &Rd, ipa: usize, level: usize, error_code: Error ) -> Result<(S2TTE, usize), Error>
pub fn is_valid(&self, level: usize, is_ns: bool) -> bool
pub fn is_host_ns_valid(&self, level: usize) -> bool
pub fn is_unassigned(&self) -> bool
pub fn is_destroyed(&self) -> bool
pub fn is_assigned(&self) -> bool
pub fn is_table(&self, level: usize) -> bool
pub fn is_invalid_ripas(&self) -> bool
pub fn address(&self, level: usize) -> Option<PhysAddr>
pub fn get_ripas(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for S2TTE
impl Send for S2TTE
impl Sync for S2TTE
impl Unpin for S2TTE
impl UnwindSafe for S2TTE
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