__adis_write_reg(9)
π __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" onvalueand the "lower of the two registers" onregare the whole plot. Handle with care, bestie π
π₯ SEE ALSO π₯
Kernel file ./drivers/iio/imu/adis.c β that's where all this lives, fr fr:
__adis_read_reg(9)__adis_update_bits_base(9)__adis_enable_irq(9)__adis_check_status(9)__adis_reset(9)__adis_initial_startup(9)adis_single_conversion(9)adis_init(9)
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
- 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