DEVICE_GET_UNIT(9)

πŸ’– DEVICE_GET_UNIT πŸ’–

okay bestie, welcome to DEVICE_GET_UNIT(9) β€” it's a page from the Kernel Developer's Manual, and yes it's a whole vibe, it's giving "tiny function, huge main character energy" πŸ¦‹


✨ NAME ✨

device_get_unit β€” the way you get at the unit number of a device πŸ”’


🌸 SYNOPSIS 🌸

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

int
device_get_unit(device_t dev);

like, you gotta pull in those two headers first, no cap. sys/param.h and sys/bus.h. then boom, you got the function πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

it returns the unit number of the device. that's it. that's the whole function. she's short, she's sweet, she's literally the icon of doing exactly one thing and doing it well πŸ‘‘

not me being obsessed with a function that fits in one sentence 😭

🫢 SEE ALSO 🫢

  • device(9) β€” go read her, she's the whole family tree iykyk

πŸ’œ AUTHORS πŸ’œ

this manual page was written by Doug Rabson. thank you king, we appreciate the lore πŸ™βœ¨


and that's the whole page fr fr 🌈 β€” this lil slice of the Debian manual is dated June 16, 1998, so it's been serving cunt in the kernel docs since before most of us could even read πŸ’€ slay, honestly. bye bestie, go get that unit number πŸ’–πŸ§šπŸŒΈ

πŸ“¦ where this page comes from