bus_add_driver(9)
π bus_add_driver(9) π
okay bestie, welcome to the Kernel API Manual, section 9 β yes we're in the big-kid driver-corner of the man pages and honestly? iconic. this one's short but she's important. π
β¨ NAME β¨
bus_add_driver β literally just: add a driver to the bus. that's the whole vibe. no cap. π
πΈ SYNOPSIS πΈ
int bus_add_driver (struct device_driver *drv );
π¦ ARGUMENTS π¦
drvβ the driver. that's it. that's the argument. it's astruct device_driver *and she is the main character of this call. π«Ά
π SEE ALSO π
like, go read these next, they're all in ./drivers/base/bus.c and they're all part of the same little family:
bus_to_subsys(9)bus_for_each_dev(9)bus_find_device(9)bus_for_each_drv(9)bus_add_device(9)bus_probe_device(9)bus_remove_device(9)bus_remove_driver(9)bus_rescan_devices(9)device_reprobe(9)bus_register(9)bus_unregister(9)subsys_dev_iter_init(9)subsys_dev_iter_next(9)subsys_dev_iter_exit(9)subsys_system_register(9)subsys_virtual_register(9)driver_find(9)bus_get_dev_root(9)
lowkey the whole bus subsystem lives in ./drivers/base and honestly it ate π
okay that's the page!! mwah π this cutie was brought to you by the source at ./drivers/base, dated October 2026, and she's filed under bus_add_driver(9) in the Kernel API Manual. go forth and add your drivers, bestie πβ¨π
π¦ 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