__adis_update_bits_base(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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 there
  • size β€” 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 πŸ”₯

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