ddi_driver_major man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

DDI_DRIVER_MAJOR(9F)					  DDI_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 asso‐
       ciated 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

				 Jun 18, 2001		  DDI_DRIVER_MAJOR(9F)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net