ti_bandgap_writel(9)
β¨ ti_bandgap_writel(9) β¨
okay bestie, so this is a page from the Kernel API Manual β yes, that manual β and today's main character is ti_bandgap_writel. it's short, it's sweet, it's giving "small but essential," and honestly? we love her for it. π
πΈ NAME πΈ
ti_bandgap_writel β a simple little write helper function, no cap. that's literally the whole job description and she's thriving.
π SYNOPSIS π
void ti_bandgap_writel (struct ti_bandgap *bgp , u32 val , u32 reg );
that's it. that's the whole signature. three args, void return, zero drama. β¨
π ARGUMENTS π
bgpβ pointer to theti_bandgapstructure, aka the whole vibe container π«Άvalβ the desired register value that you want written, like the message you're about to send π©regβ the desired register (that's the offset, iykyk) that's getting written to π―
π¦ DESCRIPTION π¦
so what does she actually do? she's the helper function for writing bandgap registers β and the way she does it is by using the io remapped area. that's the whole flex. literally it. π
think of her as the group-chat admin who just quietly makes sure your message lands in the right place. no extra steps, no attitude, just a register write through the remapped io space. iconic behaviour, honestly. π
π heads up bestie: the manpage gives you exactly this much and no more β it doesn't spell out any extra behaviour, so don't go inventing any. we stan a page that knows its limits.
π₯ SEE ALSO π₯
okay this list is LONG, and the way that every single one of these needs to be mentioned? yeah. giving thorough. giving completionist. periodt. π
- Kernel file
./drivers/thermal/ti-soc-thermal/ti-bandgap.c ti_bandgap_readl(9)β cute, it's the siblingmacro to update bits.(9)β yes, that's really how it's written, don't come for me π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_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)
like, that's the whole thermal friend group and she's tagging every single one of them. main character energy but make it generous. π
and that's the page, bestie!! π this one came from the source ./drivers/thermal/ti-soc-thermal β which is also the title-ish bit at the bottom of the original, so yeah β dated October 2026, all official and everything. go write some registers. slay. πβ¨π¦
π¦ 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