5155 NIGHTLY_OPTIONS last argument should be unquoted
[illumos-gate.git] / usr / src / man / man9s / modlstrmod.9s
blob37748a6645e73a7007c1e27216ff2fc7b3bb4fbf
1 '\" te
2 .\"  Copyright (c) 2000, Sun Microsystems, Inc.,  All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH MODLSTRMOD 9S "Jun 7, 1993"
7 .SH NAME
8 modlstrmod \- linkage structure for loadable STREAMS modules
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <sys/modctl.h>
13 .fi
15 .SH INTERFACE LEVEL
16 .sp
17 .LP
18 Solaris DDI specific (Solaris DDI)
19 .SH DESCRIPTION
20 .sp
21 .LP
22 The \fBmodlstrmod\fR structure is used by STREAMS modules to export module
23 specific information to the kernel.
24 .SH STRUCTURE MEMBERS
25 .sp
26 .in +2
27 .nf
28 struct mod_ops     *strmod_modops;
29 char               *strmod_linkinfo;
30 struct fmodsw      *strmod_fmodsw;
31 .fi
32 .in -2
34 .sp
35 .ne 2
36 .na
37 \fB\fBstrmod_modops\fR \fR
38 .ad
39 .RS 20n
40 Must always be initialized to the address of \fBmod_strmodops\fR. This
41 identifies the module as a loadable STREAMS module.
42 .RE
44 .sp
45 .ne 2
46 .na
47 \fB\fBstrmod_linkinfo\fR \fR
48 .ad
49 .RS 20n
50 Can be any string up to \fBMODMAXNAMELEN\fR, and is used to describe the
51 module. This string is usually the name of the module, but can contain other
52 information (such as a version number).
53 .RE
55 .sp
56 .ne 2
57 .na
58 \fB\fBstrmod_fmodsw\fR \fR
59 .ad
60 .RS 20n
61 Is a pointer to a template of a class entry within the module that is copied to
62 the kernel's class table when the module is loaded.
63 .RE
65 .SH SEE ALSO
66 .sp
67 .LP
68 \fBmodload\fR(1M)
69 .sp
70 .LP
71 \fIWriting Device Drivers\fR