__adis_write_reg_8(9)
π
__adis_write_reg_8 (9) β from the Kernel API Manual, bestie
Okay so picture this: you're deep in kernel land, you've got an adis device in front of you, and you just need to yeet one single byte into one single register. That's it. That's the whole gig. This is the unlocked version, so no lock hand-holding β you're on your own, main character energy β¨
π NAME π
__adis_write_reg_8 β writes a single byte to a register, and yes it's the unlocked one, no cap π«Ά
πΈ SYNOPSIS πΈ
int __adis_write_reg_8 (struct adis *adis , unsigned int reg , u8 val );
β¨ ARGUMENTS β¨
adisβ your adis device π like, the actual thing you're poking.regβ the address of the register you wanna write to. The destination, the vibe, the spot.valβ the value you're writing. One byte. An actualu8. Make it count π¦
π RETURN π
0 on success β slay π
β or a negative error code otherwise π (that's your cue to go investigate, bestie).
π 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_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_base(9)adis_update_bits(9)
Like, the whole squad is here. iykyk π
Lowkey reminder: this one is unlocked, so lock it yourself if you need locking β that's the whole reason the underscores are there, bestie π
That's the whole page, and it came from ./include/linux/iio/imu, dated October 2026, filed under __adis_write_reg_8(9) β mwah, go write that byte ππβ¨
π¦ 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