ti_bandgap_get_sensor_data(9)
π 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:
- Kernel file
./drivers/thermal/ti-soc-thermal/ti-bandgap.cβ the source, the origin, the mothership π§ ti_bandgap_readl(9)ti_bandgap_writel(9)macro to update bits.(9)ti_bandgap_power(9)ti_errata814_bandgap_read_temp(9)ti_bandgap_read_temp(9)ti_bandgap_talert_irq_handler(9)ti_bandgap_tshut_irq_handler(9)ti_bandgap_adc_to_mcelsius(9)ti_bandgap_validate(9)ti_bandgap_read_counter(9)ti_bandgap_read_counter_delay(9)ti_bandgap_read_update_interval(9)ti_bandgap_write_counter_delay(9)ti_bandgap_write_counter(9)ti_bandgap_write_update_interval(9)ti_bandgap_read_temperature(9)ti_bandgap_set_sensor_data(9)ti_bandgap_force_single_read(9)ti_bandgap_set_continuous_mode(9)ti_bandgap_get_trend(9)ti_bandgap_tshut_init(9)ti_bandgap_talert_init(9)ti_bandgap_build(9)
π 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
- 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