STRUCT TI_TEMP_SENSOR(9)
π struct ti_temp_sensor(9) π
okay so this is from the Kernel API Manual, and it's literally the whole vibe of struct ti_temp_sensor β aka bandgap temperature sensor configuration data. no cap, that's the NAME section, we're moving. β¨
π SYNOPSIS π
bestie, here's the whole struct, exact and untouched, look at her:
struct ti_temp_sensor {
struct temp_sensor_data *ts_data;
struct temp_sensor_registers *registers;
char *domain;
const int slope_pcb;
const int constant_pcb;
int (*register_cooling)(struct ti_bandgap *bgp, int id);
int (*unregister_cooling)(struct ti_bandgap *bgp, int id);
};
β¨ Members β¨
okay so let's go field by field, no skipping, we respect all of them π«Ά
ts_dataβ a pointer to the struct that holds the thresholds and the limits of the temperature sensor. she's got boundaries, we love that for her.registersβ pointer to the list of register offsets and bitfields. like the address book for where everything actually lives.domainβ the name of the domain where the sensor is located π iykyk.slope_pcbβ sensor gradient slope info for the hotspot extrapolation equation, with no external influence. yes that's the exact phrasing, it's giving very specific and we're keeping it.constant_pcbβ sensor gradient const info for the hotspot extrapolation equation, with no external influence. twin of the one above, different job πregister_coolingβ a function that describes how this sensor is going to be cooled. signature isint (*register_cooling)(struct ti_bandgap *bgp, int id);β she takes thebgpand anid, periodt.unregister_coolingβ a function to release cooling data. signature isint (*unregister_cooling)(struct ti_bandgap *bgp, int id);β the cleanup bestie, main character energy honestly.
πΈ Description πΈ
so this is a data structure that describes a temperature sensor handled by a bandgap device. iconic honestly π₯
the whole point is that she provides configuration details on this sensor β literally:
- how to access the registers affecting this sensor
- the shadow register buffer
- how to assess the gradient from hotspot
- how to cooldown the domain when the sensor reports too hot temperature π
that's it, that's the job, and she does it beautifully π
π¦ SEE ALSO π¦
go look at these, fr fr:
- 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 temp_sensor_regval(9)struct ti_bandgap(9)- ti bandgap feature types(9)
struct ti_bandgap_data(9)
π ok that's the page!! this one came out of ./drivers/thermal/ti-soc-thermal, dated October 2026 β so yeah, mark your calendar bestie, and go read the kernel docs, they're lowkey iconic. 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