STRUCT TI_TEMP_SENSOR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 is int (*register_cooling)(struct ti_bandgap *bgp, int id); β€” she takes the bgp and an id, periodt.
  • unregister_cooling β€” a function to release cooling data. signature is int (*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.h bandgap 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