__adis_write_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __adis_write_reg(9) β€” the Kernel API Manual, but make it a group chat πŸŽ€

okay so bestie, welcome to the Kernel API Manual entry for __adis_write_reg. This is the unlocked version of the write-register function, and yes, "unlocked" is doing a lot of heavy lifting there so keep that in mind πŸ‘€ (the header of this page says __adis_write_reg(9) β€” that's the whole vibe, iykyk).


✨ NAME ✨

__adis_write_reg β€” write N bytes to register (unlocked version) πŸ¦‹

Literally what it says: N bytes, register, no lock. Slay.

🌸 SYNOPSIS 🌸

int __adis_write_reg (struct adis *adis , unsigned int reg , unsigned
       int value , unsigned int size );

It returns an int, it takes a struct adis *adis, an unsigned int reg, an unsigned int value, and an unsigned int size. Four args, one return, iconic behavior πŸ’–

πŸŽ€ ARGUMENTS πŸŽ€

  • adis β€” the adis device, your main character 🫢
  • reg β€” the address of the lower of the two registers (yes, lower β€” that's the detail, don't lose it) ✨
  • value β€” the value you're writing to the device, up to 4 bytes πŸ’…
  • size β€” the size of the value, in bytes πŸ“
ngl, the "up to 4 bytes" on value and the "lower of the two registers" on reg are the whole plot. Handle with care, bestie 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/iio/imu/adis.c β€” that's where all this lives, fr fr:

The way this is a whole friend group of adis functions and __adis_write_reg is just one of them πŸ˜ŒπŸ‘‘


πŸ’œ and that's the page, bestie β€” go forth and write those N bytes πŸ’œ

Sign-off szn: this gem lives in ./drivers/iio/imu, it's dated October 2026, and it's brought to you by the Kernel API Manual (version energy: kernel-y and official πŸŽ€). mwah πŸ’‹

__adis_write_reg(9)   October 2026   __adis_write_reg(9) β€” periodt πŸ’…

πŸ“¦ where this page comes from