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_major(9F)


NAME

 ddi_driver_major - return driver's major device number

SYNOPSIS

 
#include <sys/ddi.h>
#include <sys/sunddi.h>
major_t ddi_driver_major(dev_info_t *dip);

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI)

DESCRIPTION

 

ddi_driver_major() returns the major device number for the driver associated with the supplied dev_info node. This value can then be used as an argument to makedevice(9F) to construct a complete dev_t.

PARAMETERS

 
dip
A pointer to the device's dev_info structure.

RETURN VALUES

 

ddi_driver_major() returns the major number of the driver bound to a device, if any, or DDI_MAJOR_T_NONE otherwise.

CONTEXT

 

ddi_driver_major() can be called from kernel or interrupt context.

SEE ALSO

 

ddi_driver_name(9F)

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 18 Jun 2001

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