MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                 ddidrivermajor(9F)



NAME
     ddidrivermajor - return driver's major device number

SYNOPSIS
     #include 
     #include 

     majort ddidrivermajor(devinfot *dip);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI)

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

PARAMETERS
     dip    A pointer to the device's devinfo structure.


RETURN VALUES
     ddidrivermajor() returns the major number  of  the  driver
     bound to a device, if any, or DIMAJORTNONE otherwise.

CONTEXT
     ddidrivermajor() can be called from  kernel  or  interrupt
     context.

SEE ALSO
     ddidrivername(9F)


     Writing Device Drivers



















SunOS 5.11          Last change: 18 Jun 2001                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™