dio_register_driver(9)
π NAME π
dio_register_driver β bestie, this is the one that registers a brand new DIO driver β¨
(it lives in the Kernel API Manual, section 9, if you were wondering π)
π¦ SYNOPSIS π¦
int dio_register_driver (struct dio_driver *drv );
πΈ ARGUMENTS πΈ
drvβ the driver structure you wanna register. that's it, that's the whole argument π«Ά
β¨ DESCRIPTION β¨
okay so picture this: dio_register_driver takes your driver structure and adds it to the list of registered drivers. literally just slips it into the lineup π
and what does it give you back? zero if everything slayed, or a negative error value if it did not go well π so like, check your return value, ngl. a negative number is your sign that something went sideways π
π SEE ALSO π
- the kernel file
./drivers/dio/dio-driver.cβ go read the source, iykyk π§ dio_match_device(9)dio_unregister_driver(9)(the one you call when you're done, no cap)dio_bus_match(9)
fr fr, if you're registering drivers you should lowkey read dio_unregister_driver(9) too β what goes on the list can come off the list π
and that's the whole page, bestie! stay iconic β this one's from ./drivers/dio, dated October 2026, and it's the dio_register_driver(9) page β mwah ππ
π¦ 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