Struct omnisensor::peci::PECISensorConfig
source · [−]pub struct PECISensorConfig {
name: String,
cpuid: u64,
bus: u64,
address: u64,
dts_crit_offset: f64,
thresholds: Vec<ThresholdConfig>,
}
Expand description
Internal representation of the dbus config data for a PECI sensor.
Aside from what’s here, there’s also a "PresenceGPIO"
key in a few E-M configs:
"PresenceGPIO": [{ "Name": "...", "Polarity": "..."}]
It seems to be ignored by intelcpusensor
as far as I can tell though, so we’re
ignoring it here too (for now at least). (Also, it’s not clear to me why the object
is wrapped in an array.)
Fields
name: String
Name of the sensor.
FIXME: Is this used for anything? Need to figure this out.
cpuid: u64
The ID number of the CPU.
FIXME: Is this used for anything? Need to figure this out.
bus: u64
The PECI bus number of the CPU.
address: u64
The PECI address of the CPU.
dts_crit_offset: f64
The DTS critical offset if provided, 0.0 by default.
This is used as a threshold hysteresis value that optionally overrides what the kernel provides.
thresholds: Vec<ThresholdConfig>
Threshold settings for the sensor.
At least in intelcpusensor
, the threshold information in sysfs is ignored if
any of these are provided.