#[repr(C)]pub struct cpuinfo_cache {
pub size: u32,
pub associativity: u32,
pub sets: u32,
pub partitions: u32,
pub line_size: u32,
pub flags: u32,
pub processor_start: u32,
pub processor_count: u32,
}
Fields§
§size: u32
Cache size in bytes
associativity: u32
Number of ways of associativity
sets: u32
Number of sets
partitions: u32
Number of partitions
line_size: u32
Line size in bytes
flags: u32
Binary characteristics of the cache (unified cache, inclusive cache, cache with complex indexing).
@see CPUINFO_CACHE_UNIFIED, CPUINFO_CACHE_INCLUSIVE, CPUINFO_CACHE_COMPLEX_INDEXING
processor_start: u32
Index of the first logical processor that shares this cache
processor_count: u32
Number of logical processors that share this cache
Trait Implementations§
Source§impl Clone for cpuinfo_cache
impl Clone for cpuinfo_cache
Source§fn clone(&self) -> cpuinfo_cache
fn clone(&self) -> cpuinfo_cache
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for cpuinfo_cache
impl Debug for cpuinfo_cache
impl Copy for cpuinfo_cache
Auto Trait Implementations§
impl Freeze for cpuinfo_cache
impl RefUnwindSafe for cpuinfo_cache
impl Send for cpuinfo_cache
impl Sync for cpuinfo_cache
impl Unpin for cpuinfo_cache
impl UnwindSafe for cpuinfo_cache
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