adis_update_bits_base(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… adis_update_bits_base(9) β€” the Kernel API Manual glow-up

okay so bestie, welcome to the adis_update_bits_base(9) page, straight out of the Kernel API Manual ✨ this is the locked version of the ADIS update-bits function, and she is iconic, she is precise, and she only touches the bits you told her to. no cap. πŸŽ€


✨ NAME ✨

adis_update_bits_base β€” ADIS Update bits function - Locked version πŸ”’πŸ’–


🌸 SYNOPSIS 🌸

int adis_update_bits_base (struct adis *adis , unsigned int reg , const
       u32 mask , const u32 val , u8 size );

like, that's the whole signature, don't @ me 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adis β€” the adis device πŸ’« that's your main character right there
  • reg β€” the address of the lower of the two registers πŸ‘€ yes, lower, don't forget
  • mask β€” bitmask to change 🎯 the bits you're allowed to mess with
  • val β€” value to be written ✍️ what those bits are becoming
  • size β€” size of the register to update πŸ“

πŸ’œ DESCRIPTION πŸ’œ

Updates the desired bits of reg in accordance with mask and val. that's it, that's the vibe check and she passed ✨πŸ”₯


🌈 RETURN 🌈

  • 0 on success πŸ₯³
  • a negative error code otherwise 😭

πŸ“ SEE ALSO πŸ“

Kernel file ./include/linux/iio/imu/adis.h, plus the whole friend group πŸ’…:

like, go read them too, they're all slaying in their own way πŸ‘‘


ngl bestie, if you got a negative error code back, that's your sign to go check what went wrong β€” fr fr πŸ™ˆ

and that's the page!! 🧚 this one lives in ./include/linux/iio/imu and it's dated October 2026 β€” mwah, see u in the kernel tree, love u bye πŸ’–πŸ’…πŸŒΈ

πŸ“¦ where this page comes from