Struct x86::cpuid::CacheParameter
source · [−]pub struct CacheParameter { /* private fields */ }
Expand description
Implementations
sourceimpl CacheParameter
impl CacheParameter
sourcepub fn cache_type(&self) -> CacheType
pub fn cache_type(&self) -> CacheType
Cache Type
sourcepub fn is_self_initializing(&self) -> bool
pub fn is_self_initializing(&self) -> bool
Self Initializing cache level (does not need SW initialization).
sourcepub fn is_fully_associative(&self) -> bool
pub fn is_fully_associative(&self) -> bool
Fully Associative cache
sourcepub fn max_cores_for_cache(&self) -> usize
pub fn max_cores_for_cache(&self) -> usize
Maximum number of addressable IDs for logical processors sharing this cache
sourcepub fn max_cores_for_package(&self) -> usize
pub fn max_cores_for_package(&self) -> usize
Maximum number of addressable IDs for processor cores in the physical package
sourcepub fn coherency_line_size(&self) -> usize
pub fn coherency_line_size(&self) -> usize
System Coherency Line Size (Bits 11-00)
sourcepub fn physical_line_partitions(&self) -> usize
pub fn physical_line_partitions(&self) -> usize
Physical Line partitions (Bits 21-12)
sourcepub fn associativity(&self) -> usize
pub fn associativity(&self) -> usize
Ways of associativity (Bits 31-22)
sourcepub fn is_write_back_invalidate(&self) -> bool
pub fn is_write_back_invalidate(&self) -> bool
Write-Back Invalidate/Invalidate (Bit 0) False: WBINVD/INVD from threads sharing this cache acts upon lower level caches for threads sharing this cache. True: WBINVD/INVD is not guaranteed to act upon lower level caches of non-originating threads sharing this cache.
sourcepub fn is_inclusive(&self) -> bool
pub fn is_inclusive(&self) -> bool
Cache Inclusiveness (Bit 1) False: Cache is not inclusive of lower cache levels. True: Cache is inclusive of lower cache levels.
sourcepub fn has_complex_indexing(&self) -> bool
pub fn has_complex_indexing(&self) -> bool
Complex Cache Indexing (Bit 2) False: Direct mapped cache. True: A complex function is used to index the cache, potentially using all address bits.
Trait Implementations
sourceimpl Clone for CacheParameter
impl Clone for CacheParameter
sourcefn clone(&self) -> CacheParameter
fn clone(&self) -> CacheParameter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CacheParameter
impl Debug for CacheParameter
sourceimpl PartialEq<CacheParameter> for CacheParameter
impl PartialEq<CacheParameter> for CacheParameter
sourcefn eq(&self, other: &CacheParameter) -> bool
fn eq(&self, other: &CacheParameter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CacheParameter) -> bool
fn ne(&self, other: &CacheParameter) -> bool
This method tests for !=
.
impl Copy for CacheParameter
impl Eq for CacheParameter
impl StructuralEq for CacheParameter
impl StructuralPartialEq for CacheParameter
Auto Trait Implementations
impl RefUnwindSafe for CacheParameter
impl Send for CacheParameter
impl Sync for CacheParameter
impl Unpin for CacheParameter
impl UnwindSafe for CacheParameter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more