STRUCT TEMP_SENSOR_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ 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.h bandgap 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