adis_update_bits_base(9)
π 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β theadisdevice π« that's your main character right thereregβ the address of the lower of the two registers π yes, lower, don't forgetmaskβ bitmask to change π― the bits you're allowed to mess withvalβ value to be written βοΈ what those bits are becomingsizeβ 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 π
0on success π₯³- a negative error code otherwise π
π SEE ALSO π
Kernel file ./include/linux/iio/imu/adis.h, plus the whole friend group π
:
struct adis_data(9)struct adis_ops(9)struct adis(9)adis_reset(9)__adis_write_reg_8(9)__adis_write_reg_16(9)__adis_write_reg_32(9)__adis_read_reg_16(9)__adis_read_reg_32(9)adis_write_reg(9)adis_read_reg(9)adis_write_reg_8(9)adis_write_reg_16(9)adis_write_reg_32(9)adis_read_reg_16(9)adis_read_reg_32(9)adis_update_bits(9)
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
- 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