adis_init(9)
π adis_init(9) β it's giving "Kernel API Manual" β¨
okay so bestie, welcome to adis_init(9) from the Kernel API Manual, and like⦠this is the first thing you call. Like the main character of initialization. periodt.
πΈ NAME πΈ
adis_init β initialize the adis device structure π
(yes that's the whole name section, she's short and iconic)
β¨ SYNOPSIS β¨
int adis_init (struct adis *adis , struct iio_dev *indio_dev , struct
spi_device *spi , const struct adis_data *data );
like yes, it returns an int, and yes there are four args, don't panic π«Ά
π ARGUMENTS π
adisβ the adis device π¦indio_devβ the iio device βspiβ the spi device πdataβ chip specific data π
π¦ DESCRIPTION π¦
so here's the tea: it returns 0 on success, and a negative error code otherwise π like if you get a negative back, that's your sign, no cap.
π¨ the big one: this function must be called before any other adis helper function may be called. like literally, respect the order. she's the opener, the others are the set. don't skip her, i'm begging π
π SEE ALSO π
Kernel file ./drivers/iio/imu/adis.c β and the whole friend group:
__adis_write_reg(9)__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)
π tiny reminder bestie: the last line of the page says./drivers/iio/imuis the source and it's dated October 2026, manual pageadis_init(9). note it, screenshot it, whatever π β and yeah, that's the whole page. slay, go init your adis device ππ§ββοΈπ₯
π¦ 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