xref: /illumos-gate/usr/src/man/man9s/modlinkage.9s (revision 2b6389efff8da018d426952e20428e7e60d568a3)
te
Copyright (c) 2000, 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]
modlinkage 9S "18 Sep 1992" "SunOS 5.11" "Data Structures for Drivers"
NAME
modlinkage - module linkage structure
SYNOPSIS

#include <sys/modctl.h> 
INTERFACE LEVEL

Solaris DDI specific (Solaris DDI)

DESCRIPTION

The modlinkage structure is provided by the module writer to the routines that install, remove, and retrieve information from a module. See _init(9E), _fini(9E), and _info(9E).

STRUCTURE MEMBERS
int ml_rev
void *ml_linkage[4];

ml_rev

Is the revision of the loadable modules system. This must have the value MODREV_1 .

ml_linkage

Is a null-terminated array of pointers to linkage structures. Driver modules have only one linkage structure.

SEE ALSO

add_drv(1M), _fini(9E), _info(9E), _init(9E), modldrv(9S), modlstrmod(9S)

Writing Device Drivers