STRUCT TEMP_SENSOR_REGVAL(9)
๐ก๏ธ struct temp_sensor_regval(9) โ the kernel API manual, bestie edition
okay so you're in the kernel API manual and the star of the show is struct temp_sensor_regval โ literally the temperature sensor's register values plus its private data, all bundled up together ๐
this is <hotpink>struct temp_sensor_regval</hotpink>(9), hi bestie ๐ซถ
โจ NAME โจ
struct temp_sensor_regval โ temperature sensor register values and priv data ๐ก๏ธ๐
๐ฆ SYNOPSIS ๐ฆ
struct temp_sensor_regval {
u32 bg_mode_ctrl;
u32 bg_ctrl;
u32 bg_counter;
u32 bg_threshold;
u32 tshut_threshold;
void *data;
};
that's the whole vibe right there, no cap ๐ฅ
๐ Members ๐
bg_mode_ctrlโ the temp sensor control register value, she's the boss of mode ๐๏ธbg_ctrlโ the bandgap ctrl register value ๐ซbg_counterโ bandgap counter value, she counts ๐งฎbg_thresholdโ bandgap threshold register value โ๏ธtshut_thresholdโ bandgap tshut register value, very important for the shutdown situation ๐จdataโ private data ๐ like, mind your business, it's hers
๐ Description ๐
so this is the data structure whose whole job is to save and restore the bandgap register set context โจ that's it, that's the assignment ๐ and listen โ only the required registers get shadowed, when needed. not me being minimal about it, that's the actual design ๐ lowkey iconic.
๐ SEE ALSO ๐
- Kernel file
./drivers/thermal/ti-soc-thermal/ti-bandgap.hbandgap driver data structure(9) struct temp_sensor_registers(9)struct temp_sensor_data(9)struct ti_bandgap(9)struct ti_temp_sensor(9)- ti bandgap feature types(9)
struct ti_bandgap_data(9)
go read those next, iykyk ๐๐ฆ
fr fr the whole bandgap squad is in ./drivers/thermal/ti-soc-thermal โ that's the group chat ๐ซถ
aaaand that's a wrap bestie ๐ธ this gem is from October 2026, source <yellow>./drivers/thermal/ti-soc-thermal</yellow>, filed under struct temp_sensor_regval(9) โ slay, go restore some context ๐
โจ๐
๐ฆ 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