device_get_name(9)

device_get_name9

Access the name of a device's device class or instance

Usage

#include <sys/param.h>

#include <sys/bus.h>

const char *

device_get_name(device_t dev);

const char *

device_get_nameunit(device_t dev);

Overview

The device_get_name() function returns the name of the device's device class.

The device_get_nameunit() function returns the name of the device's instance.

Authors

This manual page was written by Warner Losh.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.