__adis_update_bits_base(9)
π
__adis_update_bits_base(9) π
okay bestie, so this one is from the Kernel API Manual and it's literally the unlocked version of the ADIS update-bits situation β the name on the page is __adis_update_bits_base and the whole thing is ADIS Update bits function - Unlocked version π (yes the double underscore is doing main character energy, we respect it).
β¨ SYNOPSIS β¨
int __adis_update_bits_base (struct adis *adis , unsigned int reg ,
const u32 mask , const u32 val , u8 size );
that's the whole vibe check right there π¦ it gives int, it takes five things, and it wants them in exactly that order, no cap.
πΈ ARGUMENTS πΈ
adisβ the adis device itself, the actual star of the show πregβ the address of the lower of the two registers (yes, lower β that detail matters, don't come for me π«Ά)maskβ the bitmask to change, aka which bits we're messing with πvalβ the value to be written in theresizeβ size of the register to update, so like, how many bits wide the register is
π DESCRIPTION π
so what it does is: it updates the desired bits of reg in accordance with mask and val β¨ that's it, that's the function, it ate and left no crumbs π
lowkey important: this is the unlocked version, so the locking is not handled for you here β the name literally says unlocked, bestie, the regular one is the one that does the locking π
π₯ SEE ALSO π₯
- Kernel file
./drivers/iio/imu/adis.c __adis_write_reg(9)__adis_read_reg(9)__adis_enable_irq(9)__adis_check_status(9)__adis_reset(9)__adis_initial_startup(9)adis_single_conversion(9)adis_init(9)
like, go read those too, they're all in the same family and they're all iconic π
okay that's the whole page babes β this was the Kernel API Manual entry for __adis_update_bits_base(9), from ./drivers/iio/imu, dated October 2026 π mwah, go update some bits responsibly π§ββοΈπ
π¦ 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