ti_bandgap_get_sensor_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

ti_bandgap_get_sensor_data β€” bestie, it's literally just a lil helper function that grabs the thermal-framework-related data for you πŸ’…

(oh also hii, welcome to the Kernel API Manual, you're gonna slay this one, it's a short one fr fr 🫢)


✨ SYNOPSIS ✨

void * ti_bandgap_get_sensor_data (struct ti_bandgap *bgp , int id );

ok so it returns a void *, no cap, and yes that means you gotta know what you're casting it to. main character energy but make it your responsibility πŸŽ€


🌸 ARGUMENTS 🌸

  • bgp β€” pointer to the bandgap instance πŸ‘‘ this is your bandgap, your fave, the one you're pulling data out of.
  • id β€” the sensor id πŸ¦‹ like, which sensor's data do you want, bestie? gotta be specific.

⭐ RETURN ⭐

On success you get the data stored by the set function with sensor id β€” the matching one, the one that belongs to that id πŸ’– β€” or NULL if it's giving nothing πŸ™ˆ.

so like… always check for NULL before you go dereferencing, okay? that's not me being a hater, that's me being your friend πŸ’€

🌈 SEE ALSO 🌈

ok the friend group is LARGE and I love them all, here's the whole crew:


πŸŽ€ okay that's the whole page, you ate that ngl. ./drivers/thermal/ti-soc-thermal, October 2026, ti_bandgap_get_sensor_data(9) β€” mwah, go read some more kernel docs bestie, iykyk πŸ’œβœ¨
πŸ“¦ where this page comes from