ti_bandgap_w...ate_interval(9)
π ti_bandgap_write_update_interval β the kernel API manual page π
okay so bestie, you've stumbled into ti_bandgap_write_update_interval(9) and honestly? this one's a little cutie. it lives in the Kernel API Manual, and it's about setting the update interval. that's it. that's the whole vibe. let's get into it π
β¨ NAME β¨
ti_bandgap_write_update_interval β literally just set the update interval. no cap, that's the function. π¦
πΈ SYNOPSIS πΈ
here's the exact signature, copy it character for character or the compiler will simply not hear you out:
int ti_bandgap_write_update_interval (struct ti_bandgap *bgp , int id ,
u32 interval );
it hands you back an int, and it takes three things. three! iconic. π
π ARGUMENTS π
okay so let's break down the receipts on each parameter:
bgpβ pointer to bandgap instance. this is your main character right here, the whole bandgap object. you're passing in a pointer to it, so pls be normal about it πidβ sensor id. which sensor are we talking about? that's what this tells you. sensor id. simple, clean, slay.intervalβ desired update interval in miliseconds. yes, "miliseconds," that's how it's spelled here β i don't make the rules, i just report them fr fr. it's au32, and it's the interval you want, so you're manifesting it into the hardware β¨
π₯ RETURN π₯
0 on success β yasss, we ate β or the proper error code, which is the kernel's way of saying "bestie, no." π
so check that return value. always. it costs nothing and it saves you everything π«Ά
π SEE ALSO π
here's the whole friend group, all linked from the kernel file ./drivers/thermal/ti-soc-thermal/ti-bandgap.c β go say hi to them too:
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_read_temperature(9)ti_bandgap_set_sensor_data(9)ti_bandgap_get_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)
and that's the whole roster, no skips, no cuts π
quick vibe check: ti_bandgap_read_update_interval(9) is right there in the list if you ever need to read the thing back instead of writing it. balance. symmetry. we love to see it π§
k bye, this page came from ./drivers/thermal/ti-soc-thermal, dated October 2026, and the whole thing is literally titled ti_bandgap_w...ate_interval(9) (yes, the title got truncated mid-word, and honestly? mysterious. elegant. we stan a cryptic queen π). now go set your interval, bestie β
π¦ 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