DEVCLASS_GET_DEVICE(9)

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

✨ 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