opensolaris man page for ddi_driver_major

Query: ddi_driver_major

OS: opensolaris

Section: 9f

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

ddi_driver_major(9F)					   Kernel Functions for Drivers 				      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 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.11 18 Jun 2001 ddi_driver_major(9F)
Related Man Pages
ddi_dev_is_sid(9f) - centos
ddi_binding_name(9f) - mojave
ddi_binding_name(9f) - xfree86
ddi_binding_name(9f) - posix
ddi_binding_name(9f) - freebsd
Similar Topics in the Unix Linux Community
Trying to block signal
How to learn UNIX
solaris zones vs container..
Study UNIX Kernel
Free Sun Blade 2k, Ultra 2, Ross Hyperstation 30, cards, memory- Baltimore, MD