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
- 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) 1998 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms