DEVCLASS_GET_DEVICE(9)
β¨ NAME β¨
okay so welcome to the DEVCLASS_GET_DEVICE(9) manual page from the Kernel Developerβs Manual, bestie π β this one is all about devclass_get_device: translate unit number to device. Thatβs the vibe. π
πΈ SYNOPSIS πΈ
#include <sys/param.h>
#include <sys/bus.h>
device_t
devclass_get_device(devclass_t dc, int unit);
π¦ DESCRIPTION π¦
So like, this function retrieves the device instance with the given unit number and returns it. Slay. π
π RETURN VALUES π
If the device exists, it is returned. Otherwise NULL is returned. periodt. β¨
π SEE ALSO π
π AUTHORS π
This manual page was written by Doug Rabson. iconic. π«Ά
and thatβs the whole page, bestie π¦ β cute sign-off time: this one is from Debian, dated June 16, 1998. π
π¦ 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