STRUCT TEMP_SENSOR_DATA(9)
π struct temp_sensor_data(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one is literally all about struct temp_sensor_data, and no cap it's the whole vibe check for your temperature sensors π‘οΈπ¦
πΈ NAME πΈ
struct temp_sensor_data β the thresholds and limits for temperature sensors π
like, every boundary your sensor cares about lives in here, periodt.
β¨ SYNOPSIS β¨
struct temp_sensor_data {
u32 tshut_hot;
u32 tshut_cold;
u32 t_hot;
u32 t_cold;
u32 min_freq;
u32 max_freq;
};
look at her. six fields. main character energy π (and yes, that closing brace has one extra space in front of it in the original β copying it exactly, iykyk π )
π«Ά Members π«Ά
tshut_hotβ the temperature that triggers a thermal reset π₯ (this is the initial value, just so we're clear)tshut_coldβ the temp that gets the plat out of reset because of thermal stuff π§ (init val, bestie)t_hotβ the temperature that triggers a thermal alert π¨ (high initial value)t_coldβ the temperature that triggers a thermal alert too, but the cold kind βοΈ (low initial value)min_freqβ the sensor's minimum clock rate β±οΈmax_freqβ the sensor's maximum clock rate β±οΈπ¨
π Description π
so this data structure is basically the β¨holding penβ¨ for all the required thresholds and temperature limits for one specific temperature sensor. we're talking shutdown temperature, alert temperature, clock / rate used, ADC conversion limits and update intervals π
it's giving "one struct to keep your sensor's whole boundary situation organized" and honestly? obsessed π
π SEE ALSO π
- Kernel file
./drivers/thermal/ti-soc-thermal/ti-bandgap.hbandgap driver data structure(9) struct temp_sensor_registers(9)struct temp_sensor_regval(9)struct ti_bandgap(9)struct ti_temp_sensor(9)- ti bandgap feature types(9)
struct ti_bandgap_data(9)
ok that's the whole page fr fr β go read the siblings above if you want the full thermal lore πΈ
and that's a wrap bestie!! π this lil beauty lives in ./drivers/thermal/ti-soc-thermal, dated October 2026, and it's brought to you by the Kernel API Manual ππ¦ mwah π
π¦ 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