Data Structures for Drivers modldrv(9S)
NAME
modldrv - linkage structure for loadable drivers
SYNOPSIS
#include
INTERFACE LEVEL
Solaris DI specific (Solaris DI)
DESCRIPTION
The modldrv structure is used by device drivers to export
driver specific information to the kernel.
STRUCTURE MEMBERS
struct modops *drvmodops;
char *drvlinkinfo;
struct devops *drvdevops;
drvmodops Must always be initialized to the address
of moddriverops. This member identifies
the module as a loadable driver.
drvlinkinfo Can be any string up to MODMAXNAMELEN char-
acters (including the terminating NUL
character), and is used to describe the
module and its version number. This is usu-
ally the name of the driver and module ver-
sion information, but can contain other
information as well.
drvdevops Pointer to the driver's devops(9S) struc-
ture.
SEE ALSO
adddrv(1M), devops(9S), modlinkage(9S)
Writing Device Drivers
SunOS 5.11 Last change: 5 Mar 2001 1
|