DEVICE_GET_NAME(9)

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

πŸ’… DEVICE_GET_NAME(9) πŸ’…

okay bestie, this page is DEVICE_GET_NAME(9) from the Kernel Developer’s Manual, and it’s literally about reading a device’s name. no cap 🫢


🌸 NAME 🌸

device_get_name, device_get_nameunit β€” two little helpers for reading a device’s device-class name or its instance name. lowkey iconic ✨

✨ 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 πŸ¦‹

okay so device_get_name() is the one that returns the name of the device’s device class. it’s giving class-name reveal πŸ’…

device_get_nameunit() returns the name of the device’s instance. yes bestie, instance-name energy πŸŽ€

🌈 SEE ALSO 🌈

  • device(9) β€” go peek at this one too, iykyk πŸ‘‘

πŸ‘‘ AUTHORS πŸ‘‘

this manual page was written by Warner Losh. periodt πŸ’–


mwah 🫢 this came from Debian, dated April 21, 2003 β€” bye bestie, go name those devices 🌟

πŸ“¦ where this page comes from