MACRO TO UPDATE BITS.(9)
π macro to update bits.(9) π
the Kernel API Manual, but make it a group chat β¨
okay bestie, before anything else: we're in the Kernel API Manual, and this little cutie is named macro to update bits. β no cap, that's genuinely the whole title. now let's get into it π«Ά
π THE VIBE (aka what it does) π
RMW_BITS β it's giving read, modify, update energy. π
so like, RMW_BITS is used to read, modify and update bandgap bitfields. that's the whole personality. you hand it a value, and heads up bestie β the value passed will be shifted. β οΈ not optional, not a vibe, it will be shifted. so factor that in before you go touching bitfields like a main character, fr fr.
π₯ real talk: it reads, it modifies, it updates. the shift is not a rumour. plan accordingly.
π SEE ALSO π
this is the iconic supporting cast β every single one of them, because we don't do "and friends" around here, periodt. π
- the kernel file itself:
./drivers/thermal/ti-soc-thermal/ti-bandgap.cπ¦ ti_bandgap_readl(9)ti_bandgap_writel(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_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)
twenty-four entries and every last one of them is invited to the function party. π§π
shoutout to ./drivers/thermal/ti-soc-thermal for being the home base, and to October 2026 for the timestamp β this page is officially datestamped and slaying β¨ mwah, bye 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