raw_cpuid

Struct ApmInfo

Source
pub struct ApmInfo { /* private fields */ }
Expand description

Processor Power Management and RAS Capabilities (LEAF=0x8000_0007).

§Platforms

✅ AMD 🟡 Intel

Implementations§

Source§

impl ApmInfo

Source

pub fn has_mca_overflow_recovery(&self) -> bool

Is MCA overflow recovery available?

If set, indicates that MCA overflow conditions (MCi_STATUS[Overflow]=1) are not fatal; software may safely ignore such conditions. If clear, MCA overflow conditions require software to shut down the system.

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_succor(&self) -> bool

Has Software uncorrectable error containment and recovery capability?

The processor supports software containment of uncorrectable errors through context synchronizing data poisoning and deferred error interrupts.

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_hwa(&self) -> bool

Has Hardware assert supported?

Indicates support for MSRC001_10[DF:C0].

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn cpu_pwr_sample_time_ratio(&self) -> u32

Specifies the ratio of the compute unit power accumulator sample period to the TSC counter period.

Returns a value of 0 if not applicable for the system.

§Platforms

✅ AMD ❌ Intel (reserved=0)

Source

pub fn has_ts(&self) -> bool

Is Temperature Sensor available?

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_freq_id_ctrl(&self) -> bool

Frequency ID control.

§Note

Function replaced by has_hw_pstate.

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_volt_id_ctrl(&self) -> bool

Voltage ID control.

§Note

Function replaced by has_hw_pstate.

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_thermtrip(&self) -> bool

Has THERMTRIP?

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_tm(&self) -> bool

Hardware thermal control (HTC)?

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_100mhz_steps(&self) -> bool

Has 100 MHz multiplier Control?

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_hw_pstate(&self) -> bool

Has Hardware P-state control?

MSRC001_0061 [P-state Current Limit], MSRC001_0062 [P-state Control] and MSRC001_0063 [P-state Status] exist

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_invariant_tsc(&self) -> bool

Is Invariant TSC available?

§Platforms

✅ AMD ✅ Intel

Source

pub fn has_cpb(&self) -> bool

Has Core performance boost?

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_ro_effective_freq_iface(&self) -> bool

Has Read-only effective frequency interface?

Indicates presence of MSRC000_00E7 [Read-Only Max Performance Frequency Clock Count (MPerfReadOnly)] and MSRC000_00E8 [Read-Only Actual Performance Frequency Clock Count (APerfReadOnly)].

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_feedback_iface(&self) -> bool

Indicates support for processor feedback interface.

§Note

This feature is deprecated.

§Platforms

✅ AMD ❌ Intel (reserved=false)

Source

pub fn has_power_reporting_iface(&self) -> bool

Has Processor power reporting interface?

§Platforms

✅ AMD ❌ Intel (reserved=false)

Trait Implementations§

Source§

impl Debug for ApmInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ApmInfo

Source§

fn eq(&self, other: &ApmInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for ApmInfo

Source§

impl StructuralPartialEq for ApmInfo

Auto Trait Implementations§

§

impl Freeze for ApmInfo

§

impl RefUnwindSafe for ApmInfo

§

impl Send for ApmInfo

§

impl Sync for ApmInfo

§

impl Unpin for ApmInfo

§

impl UnwindSafe for ApmInfo

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.