ti_bandgap_f..._single_read(9)
π ti_bandgap_force_single_read π
okay so bestie, welcome to the Kernel API Manual β yes that Kernel API Manual, the one with all the thermal tea π«. this page is literally all about ti_bandgap_force_single_read, and it's lowkey one of the cutest little helpers in the bandgap fam.
β¨ NAME β¨
ti_bandgap_force_single_read β executes 1 single ADC conversion. one. single. conversion. no more, no less. it's giving "one and done" energy π
πΈ SYNOPSIS πΈ
int ti_bandgap_force_single_read (struct ti_bandgap *bgp , int id );
π ARGUMENTS π
bgpβ pointer tostruct ti_bandgap. this is the main character, the whole bandgap situation, you can't do anything without it π«Άidβ the sensor id which it is desired to read 1 temperature. like, which sensor's temp do we want? that one. that's the vibe check β¨
π¦ DESCRIPTION π¦
so what does it even do? it's used to initialize the conversion state machine and set it to a valid state. literally setting the vibes right so the thing can actually function π
when's it called? during device initialization and context restore events. so like, when the device first wakes up and whenever we gotta restore context. it's the "okay everyone, we're back, let's get into formation" moment π§
π₯ RETURN π₯
returns 0. that's it. that's the whole return value. no drama, no surprises, just 0 π
ngl, a function that always hands you a 0 is highkey iconic β zero anxiety, zero "is this an error code" spiraling π
β SEE ALSO β
bestie, the cross-reference list here is long and honestly? she ate. every single one, in order:
- Kernel file
./drivers/thermal/ti-soc-thermal/ti-bandgap.c 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_get_sensor_data(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)
go read those too, iykyk π
and that's the whole page, periodt π
cute little sign-off before you go: this came from ./drivers/thermal/ti-soc-thermal, dated October 2026. slay, go forth and force exactly one single read ππ
π¦ 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