DEVICE_GET_NAME(9)

πŸ’– DEVICE_GET_NAME(9) πŸ’–

okay so bestie, welcome to the Kernel Developer's Manual page for DEVICE_GET_NAME(9) β€” it's giving very specific kernel-dev energy, and we're gonna read it together. no cap. πŸ’…


✨ NAME ✨

device_get_name, device_get_nameunit β€” access the name of a device's device class or instance. periodt.


🌸 SYNOPSIS 🌸

#include <sys/param.h>
#include <sys/bus.h>

const char *
device_get_name(device_t dev);

const char *
device_get_nameunit(device_t dev);

πŸ¦‹ DESCRIPTION πŸ¦‹

So, device_get_name() returns the name of the device's device class. that's the class name, bestie.

And device_get_nameunit() returns the name of the device's instance. yes, the instance name. iconic. πŸ’…


πŸ’œ SEE ALSO πŸ’œ


πŸŽ€ AUTHORS πŸŽ€

This manual page was written by Warner Losh. slay.


mwah πŸ’‹ that's the whole vibe. this was the DEVICE_GET_NAME(9) page from the Kernel Developer's Manual, brought to you by Debian and dated April 21, 2003. bye bestie 🫢

πŸ“¦ where this page comes from