DEVICE_GET_UNIT(9)
π DEVICE_GET_UNIT(9) π
okay so bestie, welcome to the Kernel Developer's Manual β yes, the kernel kernel, main character energy only β¨
β¨ NAME β¨
device_get_unit β access the unit number of a device π
πΈ SYNOPSIS πΈ
like, include these first, no cap:
#include <sys/param.h>
#include <sys/bus.h>
int
device_get_unit(device_t dev);
π¦ DESCRIPTION π¦
So this one literally just returns the unit number of the device. that's it. that's the whole vibe. device_t dev goes in, the unit number comes out, slay π
π SEE ALSO π
device(9)β go read this one too, iykyk π«Ά
π AUTHORS π
This manual page was written by Doug Rabson. king behavior fr fr πβ
and that's the whole page, bestie β short and iconic π this came from the Debian manual, dated June 16, 1998, so it's giving vintage but make it kernel π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1998 Doug Rabson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms