DEVICE_GET_PARENT(9)

✨ NAME ✨

device_get_parent β€” bestie, it hands u the device's parent πŸ’…


🌸 SYNOPSIS 🌸

ok so first u gotta pull in the lore:

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

device_t
device_get_parent(device_t dev);

πŸ’– DESCRIPTION πŸ’–

the device_get_parent() function returns the name of the device's parent device. that's it. that's the whole gig. ur device has a parent, and this function is the one that tells u who it is 🫢

literally the "who's ur daddy" of kernel dev, no cap πŸŽ€


πŸ¦‹ SEE ALSO πŸ¦‹

  • device(9) β€” go read this one too, it's giving main character energy ⭐

πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Warner Losh. iconic behavior, we love to see it πŸ’œ


and that's the whole page bestie!! go forth and find ur parents πŸ§šβ€β™€οΈβœ¨

this lil page came from the Debian crew, dated April 21, 2003 β€” yeah it's vintage, it's still slaying tho πŸ’…πŸŒˆ

πŸ“¦ where this page comes from