__adis_read_reg_32(9)
π
__adis_read_reg_32 (9) β Kernel API Manual, bestie edition
okay so this is a page from the Kernel API Manual, and it's about __adis_read_reg_32 β literally the unlocked version of reading 4 bytes out of a 32-bit register. yes bestie, unlocked, we'll get to that vibe. π¦
β¨ NAME β¨
__adis_read_reg_32 β read 4 bytes from a 32-bit register (unlocked)
like... that's the whole gig. four bytes. 32 bits. no locks involved. periodt. π
π SYNOPSIS π
int __adis_read_reg_32 (struct adis *adis , unsigned int reg , u32 *val );
three arguments, one int coming back at you. iconic signature ngl β¨
πΈ ARGUMENTS πΈ
adisβ The adis device. it's the device, the main character of this whole function π«Άregβ The address of the lower of the two registers. yes, the lower of the two β this one's doing a little two-register situation, and you hand it the bottom one. lowkey important detail, don't forget it πvalβ The value read back from the device. this is where the goods land, so make sure it's a realu32 *and not some nonsense π
β RETURN β
0 on success, a negative error code otherwise. that's it, that's the whole return contract β zero means slay, anything negative means something went sideways π
π₯ 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_8(9)__adis_write_reg_16(9)__adis_write_reg_32(9)__adis_read_reg_16(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)
ngl that's a stacked SEE ALSO section, iykyk π
heads up bestie: this is the unlocked one β the double-underscore at the front is the whole tell. if you're reaching for the version that handles locking for you, that's a different function in the list above, so vibe check which one you're actually calling before you commit π
and that's the page!! brought to you by the source at ./include/linux/iio/imu, dated October 2026, filed under __adis_read_reg_32(9) β go read your registers responsibly, ily, bye ππ§ββοΈπ
π¦ 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