STRUCT EMC2305_CDEV_DATA(9)
π NAME π
okay so this is the Kernel API Manual page for struct emc2305_cdev_data β literally the device-specific cooling device state, bestie. The whole name vibe is: struct emc2305_cdev_data - device-specific cooling device state. no cap.
β¨ SYNOPSIS β¨
Hereβs the struct in all its main-character glory:
struct emc2305_cdev_data {
struct thermal_cooling_device *cdev;
unsigned int cur_state;
unsigned long last_hwmon_state;
unsigned long last_thermal_state;
};
π§ Members π§
cdevβ cooling device. iconic.cur_stateβ cooling current state. lowkey exactly what it says.last_hwmon_stateβ last cooling state updated by thehwmonsubsystem.last_thermal_stateβ last cooling state updated by thethermalsubsystem.
π Description π
The last_hwmon_state and last_thermal_state fields are here to support the fan low limit speed feature. Bestie, the purpose of this feature is to provide the ability to limit fan speed according to some system-wise considerations β like absence of some replaceable units (PSU or line cards), high system ambient temperature, unreliable transceivers temperature sensing, or some other factors which indirectly impact the systemβs airflow. itβs giving airflow damage control, fr fr.
Fan low limit feature is supported through the hwmon interface: the hwmon pwm attribute is used for setting the low limit for fan speed in case the thermal subsystem is configured in the kernel. In this case, setting fan speed through hwmon will never let the thermal subsystem select a lower duty cycle than the duty cycle selected with the pwm attribute. From the other side, fan speed is to be updated in hardware through pwm only in case the requested fan speed is above the last speed set by the thermal subsystem; otherwise, the requested fan speed will be just stored with no PWM update.
π SEE ALSO π
- Kernel file
./drivers/hwmon/emc2305.c - struct
emc2305_data(9)
mwah π this page lives under ./drivers/hwmon and is dated October 2026 β thatβs the footer, bestie, and yes it ate. π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms