adis_write_reg_8(9)
π
adis_write_reg_8 (9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the kernel, you've got an adis device staring at you, and you just need to yeet one single byte into one single register. that's it. that's the whole vibe. this function is the "just one chip, just one byte" icon that we all needed π
β¨ NAME β¨
adis_write_reg_8 β writes a single byte to a register. one byte. no cap. π
π¦ SYNOPSIS π¦
int adis_write_reg_8 (struct adis *adis , unsigned int reg , u8 val );
πΈ ARGUMENTS πΈ
adisβ the adis device itself, your main character π«Άregβ the address of the register you're writing to (where the byte is gonna live, iykyk)valβ the value to write. literally the value. that's it. that's the byte π
β RETURN β
0 on success, and a negative error code otherwise π (so like, check it. pls check it.)
π SEE ALSO π
Kernel file ./include/linux/iio/imu/adis.h β and 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_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)
ngl bestie, 8 in the name is not a drill β this one writes 8 bits and nothing more. if you wanted 16 or 32, the squad above has you covered π
and that's the page!! π§ from ./include/linux/iio/imu, dated October 2026 β stay slay, stay byte-sized, and go write that register ππ
π¦ 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