DEVICE_SET_DRIVER(9)
π DEVICE_SET_DRIVER π
okay bestie, welcome to the Kernel Developer's Manual, section 9 β yes we're deep in kernel dev territory, this is DEVICE_SET_DRIVER(9) and she's short, sweet, and lowkey powerful π
β¨ NAME β¨
device_set_driver β the girl who introduces a specific driver to a device node in the tree π«Ά like a matchmaker but for kernel objects
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/bus.h>
void
device_set_driver(device_t dev, driver_t *driver);
no cap, that's the whole thing. two includes, one function, zero drama β¨
π¦ DESCRIPTION π¦
so what does she even do? device_set_driver associates a specific driver with a given device node in the tree. that's it. that's the whole vibe. iconic behavior honestly π
the way it's normally used is inside DEVICE_IDENTIFY(9) functions, to add devices to a bus that does not support doing that automatically β like, for example, the ISA bus π she's old school like that, and we respect her for it.
ngl this is the manual-page equivalent of sliding into someone's DMs to say "hey you two should totally know each other" π
π SEE ALSO π
device(9)β go read her too, she's the main character energy of this whole situation β
π AUTHORS π
this manual page was written by M. Warner Losh. we stan a documentation legend π
and that's the whole page bestie, fr fr β nothing cut, nothing skipped, every single fact stayed exactly where it was π
this little cutie dropped as part of the Debian distribution, dated April 21, 2003 β and yeah, she's still out here being DEVICE_SET_DRIVER(9) in the Kernel Developer's Manual like the timeless queen she is ππ bye bestie, go set some drivers π§
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2003 M. Warner Losh
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms