__adis_initial_startup(9)
π __adis_initial_startup β a Kernel API Manual moment π
okay so bestie, we're in the Kernel API Manual today and the star of the show is __adis_initial_startup. she's giving device initial setup main character energy and honestly? she ate. π
β¨ SYNOPSIS β¨
int __adis_initial_startup (struct adis *adis );
π«Ά ARGUMENTS π«Ά
adisβ the adis device. that's her. that's the whole vibe check right there π
πΈ DESCRIPTION πΈ
so what does she actually do? buckle up, because it's a lot and it's iconic β¨
this function does a HW reset via a reset pin β and that reset pin should be specified via GPIOLIB. no pin configured? no problem, she'll just do a SW reset instead. flexible queen behavior honestly π¦
oh and listen β the RST pin for the ADIS devices should be configured as ACTIVE_LOW. that's not a suggestion, that's the assignment π
after the self-test operation is performed, the function will also check that the product ID is as expected. lowkey a little overachiever. this assumes that drivers providing
(yes the sentence really does just end there in the original β I'm not gatekeeping anything from you, bestie, that's literally how it arrives in the source π)
she returns 0 if the device is operational, and a negative error code otherwise. so like, zero is her way of saying "we're so back" π«Ά
this function should be called early on in the device initialization sequence to ensure that the device is in a sane and known state and that it is usable. early bird gets the working hardware, no cap π₯
π SEE ALSO π
kernel file ./drivers/iio/imu/adis.c, plus her 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_single_conversion(9)adis_init(9)
and that's the whole page, bestie!! π§π this little beauty lives over in ./drivers/iio/imu, stamped October 2026 β so go forth, call her early, keep your state sane, and slay π
ππΈ
π¦ 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