Struct raw_cpuid::CpuId
[−]
[src]
pub struct CpuId { // some fields omitted }
Main type used to query for information about the CPU we're running on.
Methods
impl CpuId
[src]
fn new() -> CpuId
Return new CPUID struct.
fn get_vendor_info(&self) -> Option<VendorInfo>
Return information about vendor. This is typically a ASCII readable string such as GenuineIntel for Intel CPUs or AuthenticAMD for AMD CPUs.
fn get_feature_info(&self) -> Option<FeatureInfo>
Query a set of features that are available on this CPU.
fn get_cache_info(&self) -> Option<CacheInfoIter>
Query basic information about caches. This will just return an index
into a static table of cache descriptions (see CACHE_INFO_TABLE
).
fn get_processor_serial(&self) -> Option<ProcessorSerial>
Retrieve serial number of processor.
fn get_cache_parameters(&self) -> Option<CacheParametersIter>
Retrieve more elaborate information about caches (as opposed
to get_cache_info
). This will tell us about associativity,
set size, line size etc. for each level of the cache hierarchy.
fn get_monitor_mwait_info(&self) -> Option<MonitorMwaitInfo>
Information about how monitor/mwait works on this CPU.
fn get_thermal_power_info(&self) -> Option<ThermalPowerInfo>
Query information about thermal and power management features of the CPU.
fn get_extended_feature_info(&self) -> Option<ExtendedFeatures>
Find out about more features supported by this CPU.
fn get_direct_cache_access_info(&self) -> Option<DirectCacheAccessInfo>
Direct cache access info.
fn get_performance_monitoring_info(&self) -> Option<PerformanceMonitoringInfo>
Info about performance monitoring (how many counters etc.).
fn get_extended_topology_info(&self) -> Option<ExtendedTopologyIter>
Information about topology (how many cores and what kind of cores).
fn get_extended_state_info(&self) -> Option<ExtendedStateInfo>
Information for saving/restoring extended register state.
fn get_qos_info(&self) -> Option<QoSInfo>
Quality of service informations.
fn get_qos_enforcement_info(&self) -> Option<QoSEnforcementInfo>
Quality of service enforcement information.
fn get_processor_trace_info(&self) -> Option<ProcessorTraceInfo>
Intel Processor Trace Enumeration Information.
fn get_tsc_info(&self) -> Option<TscInfo>
Time Stamp Counter/Core Crystal Clock Information.
fn get_processor_frequency_info(&self) -> Option<ProcessorFrequencyInfo>
Processor Frequency Information.
fn get_extended_function_info(&self) -> Option<ExtendedFunctionInfo>
Extended functionality of CPU described here (including more supported features). This also contains a more detailed CPU model identifier.