[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    modldrv(9S) manual page Table of Contents

Name

modldrv - linkage structure for loadable drivers

Synopsis

#include <sys/modctl.h>

Interface Level

Solaris DDI specific (Solaris DDI)

Description

The modldrv structure is used by device drivers to export driver specific information to the kernel.

Structure Members

struct mod_ops*drv_modops;
char*drv_linkinfo;
struct dev_ops*drv_dev_ops;
drv_modops
Must always be initialized to the address of mod_driverops. This identifies the module as a loadable driver.
drv_linkinfo
Can be any string up to MODMAXNAMELEN, and is used to describe the module. This is usually the name of the driver, but can contain other information (such as a version number).
drv_dev_ops
Pointer to the driver’s dev_ops(9S) structure.

See Also

add_drv(1M) , dev_ops(9S) , modlinkage(9S)


Table of Contents