adis_write_reg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ adis_write_reg(9) ✨

okay so real talk, this one lives in the Kernel API Manual and it's genuinely one of the cutest little helpers in the IIO/IMU corner of the kernel β€” it's the function that yeets N bytes into a register on an adis device. let's get into it bestie πŸŽ€


🌸 NAME 🌸

adis_write_reg β€” write N bytes to register πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

int adis_write_reg (struct adis *adis , unsigned int reg , unsigned int
     val , unsigned int size );

🌈 ARGUMENTS 🌈

  • adis β€” the adis device 🫢 like, the actual device struct you're poking at.
  • reg β€” the address of the lower of the two registers. yep, lower β€” that detail matters, don't come for me.
  • val β€” the value you're writing to the device. it can be up to 4 bytes, so keep it in range bestie πŸ™ˆ
  • size β€” the size of that value, and it's measured in bytes.

πŸ‘‘ RETURN πŸ‘‘

0 on success, and a negative error code otherwise. so like, zero = slay, negative = something went sideways 😭

⭐ SEE ALSO ⭐


okay that's the whole vibe check πŸ’– this page came out of ./include/linux/iio/imu and it's dated October 2026, so like… future manpage energy fr fr ✨ go write some registers, bestie, you've got this πŸ§šπŸ’œ

πŸ“¦ where this page comes from