xref: /titanic_52/usr/src/man/man9s/modldrv.9s (revision 25c28e83beb90e7c80452a7c818c5e6f73a07dc8)
te
Copyright (C) 2001, Sun Microsystems, Inc., All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
MODLDRV 9S "Mar 5, 2001"
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 member identifies the module as a loadable driver.

drv_linkinfo

Can be any string up to MODMAXNAMELEN characters (including the terminating NULL character), and is used to describe the module and its version number. This is usually the name of the driver and module version information, but can contain other information as well.

drv_dev_ops

Pointer to the driver's dev_ops(9S) structure.

SEE ALSO

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

Writing Device Drivers