Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversddi_driver_name(9F)


NAME

 ddi_driver_name - return normalized driver name

SYNOPSIS

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

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI).

PARAMETERS

 
dip
A pointer to the device's dev_info structure.

DESCRIPTION

 

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.

RETURN VALUES

 

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

CONTEXT

 

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

SEE ALSO

 

ddi_get_name(9F)

Writing Device Drivers

WARNINGS

 

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


SunOS 5.9Go To TopLast Changed 2 Dec 1998

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.