DDI_DRIVER_NAME(9F) Kernel Functions for Drivers DDI_DRIVER_NAME(9F)

ddi_driver_name - return normalized driver name

#include <sys/ddi.h>
#include <sys/sunddi.h>
const char *ddi_driver_name(dev_info_t *devi);

illumos DDI specific (illumos DDI).

dip

A pointer to the device's dev_info structure.

ddi_driver_name() returns the normalized driver name. This name is typically derived from the device name property or the device compatible property. If this name is a driver alias, the corresponding driver name is returned.

ddi_driver_name() returns the actual name of the driver bound to a device.

ddi_driver_name() can be called from kernel, or interrupt context.

ddi_get_name(9F)

Writing Device Drivers

The name returned by ddi_driver_name() is read-only.

December 2, 1998 OmniOS