pub struct CacheParameter { /* private fields */ }
Expand description
Implementations§
Source§impl CacheParameter
impl CacheParameter
Sourcepub fn cache_type(&self) -> CacheType
pub fn cache_type(&self) -> CacheType
Sourcepub fn is_self_initializing(&self) -> bool
pub fn is_self_initializing(&self) -> bool
Sourcepub fn is_fully_associative(&self) -> bool
pub fn is_fully_associative(&self) -> bool
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
§Platforms
✅ AMD ✅ Intel
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
§Platforms
❌ AMD ✅ Intel
Sourcepub fn coherency_line_size(&self) -> usize
pub fn coherency_line_size(&self) -> usize
Sourcepub fn physical_line_partitions(&self) -> usize
pub fn physical_line_partitions(&self) -> usize
Sourcepub fn associativity(&self) -> usize
pub fn associativity(&self) -> usize
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.
§Platforms
✅ AMD ✅ Intel
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.
§Platforms
✅ AMD ✅ Intel
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.
§Platforms
❌ AMD ✅ Intel
Trait Implementations§
Source§impl Clone for CacheParameter
impl Clone for CacheParameter
Source§fn clone(&self) -> CacheParameter
fn clone(&self) -> CacheParameter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more