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
|