DEVICE_GET_DEVCLASS(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

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