Struct raw_cpuid::CacheParameter [] [src]

pub struct CacheParameter {
    // some fields omitted
}

Methods

impl CacheParameter
[src]

fn cache_type(&self) -> CacheType

Cache Type

fn level(&self) -> u8

Cache Level (starts at 1)

fn is_self_initializing(&self) -> bool

Self Initializing cache level (does not need SW initialization).

fn is_fully_associative(&self) -> bool

Fully Associative cache

fn max_cores_for_cache(&self) -> usize

Maximum number of addressable IDs for logical processors sharing this cache

fn max_cores_for_package(&self) -> usize

Maximum number of addressable IDs for processor cores in the physical package

fn coherency_line_size(&self) -> usize

System Coherency Line Size (Bits 11-00)

fn physical_line_partitions(&self) -> usize

Physical Line partitions (Bits 21-12)

fn associativity(&self) -> usize

Ways of associativity (Bits 31-22)

fn sets(&self) -> usize

Number of Sets (Bits 31-00)

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.

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.

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

impl Debug for CacheParameter
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for CacheParameter
[src]

fn clone(&self) -> CacheParameter

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for CacheParameter
[src]