DEVICE_GET_DRIVER(9)

πŸ’– DEVICE_GET_DRIVER(9) πŸ’–

okay so bestie, welcome to the Kernel Developer's Manual β€” yes it's giving ancient scrolls but the lore is REAL and we're learning it together 🫢


✨ NAME ✨

device_get_driver β€” the way u access the current driver of a device πŸ’…


🌸 SYNOPSIS 🌸

#include <sys/param.h>
#include <sys/bus.h>

driver_t *
device_get_driver(device_t dev);

look at her. iconic. no notes. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this function hands u back the current driver that's associated with the device. that's it, that's the whole vibe ✨

and if the device has no driver at all?? then u get NULL back. not a vibe, but it's honest 😭

ngl that NULL is lowkey a whole mood β€” no driver, no drama, just nothing returned to u πŸ’€

πŸŽ€ SEE ALSO πŸŽ€

go read those too, i'm obsessed with a well-connected manpage fr fr πŸ“š


πŸ’œ AUTHORS πŸ’œ

this manual page was written by Doug Rabson. periodt. πŸ’…βœ¨


and that's the whole thing bestie, u ate that πŸ“ this was Debian, from June 16, 1998 β€” yeah she's a vintage icon, main character energy since the 90s πŸ‘‘ β€” brought to u as DEVICE_GET_DRIVER(9), no cap πŸ’–πŸŒˆπŸ¦‹

πŸ“¦ where this page comes from