ti_bandgap_w...ate_interval(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 a u32, 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:

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