DEVICE_GET_DEVCLASS(9)
okay so welcome to DEVICE_GET_DEVCLASS(9), bestie β it's a Kernel Developer's Manual page and it's lowkey tiny but highkey useful β¨π«Ά
πΈ NAME πΈ
device_get_devclassβ access the devclass of a device. iykyk π
β¨ SYNOPSIS β¨
okay bestie, include these two headers first, no cap:
#include <sys/param.h>
#include <sys/bus.h>
devclass_t
device_get_devclass(device_t dev);
π¦ DESCRIPTION π¦
So like, the current devclass associated with the device is returned. That's the whole function, bestie β it just hands you the devclass of the device. π
If the device has no devclass, NULL is returned. Not me... it's literally just NULL in that case. π
π SEE ALSO π
Go read these too, bestie: devclass(9), device(9). ππ«Ά
π AUTHORS π
This manual page was written by Doug Rabson. Iconic. π
Cute sign-off time π: this page is from Debian, dated June 16, 1998, and it's the DEVICE_GET_DEVCLASS(9) manual page. Bye bestie, slay your kernel adventures π
β¨
π¦ 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