11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
29
30
31 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4 1.8 */
32
33 /*
34 * This module establishes a unique connection on
35 * a STREAMS-based pipe.
36 */
37 #include <sys/types.h>
38 #include <sys/sysmacros.h>
39 #include <sys/param.h>
40 #include <sys/systm.h>
41 #include <sys/errno.h>
42 #include <sys/signal.h>
43 #include <sys/user.h>
44 #include <sys/fstyp.h>
45 #include <sys/stropts.h>
46 #include <sys/stream.h>
47 #include <sys/strsubr.h>
48 #include <sys/vnode.h>
49 #include <sys/file.h>
50 #include <sys/fs/fifonode.h>
51 #include <sys/debug.h>
52 #include <sys/ddi.h>
57 #include <sys/conf.h>
58 #include <sys/modctl.h>
59
60 extern struct streamtab conninfo;
61
62 static struct fmodsw fsw = {
63 "connld",
64 &conninfo,
65 D_NEW | D_MP
66 };
67
68 /*
69 * Module linkage information for the kernel.
70 */
71
72 static struct modlstrmod modlstrmod = {
73 &mod_strmodops, "Streams-based pipes", &fsw
74 };
75
76 static struct modlinkage modlinkage = {
77 MODREV_1, (void *)&modlstrmod, NULL
78 };
79
80 int
81 _init()
82 {
83 return (mod_install(&modlinkage));
84 }
85
86 int
87 _fini()
88 {
89 return (mod_remove(&modlinkage));
90 }
91
92 int
93 _info(struct modinfo *modinfop)
94 {
95 return (mod_info(&modlinkage, modinfop));
96 }
97
|
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
29
30
31 /*
32 * This module establishes a unique connection on
33 * a STREAMS-based pipe.
34 */
35 #include <sys/types.h>
36 #include <sys/sysmacros.h>
37 #include <sys/param.h>
38 #include <sys/systm.h>
39 #include <sys/errno.h>
40 #include <sys/signal.h>
41 #include <sys/user.h>
42 #include <sys/fstyp.h>
43 #include <sys/stropts.h>
44 #include <sys/stream.h>
45 #include <sys/strsubr.h>
46 #include <sys/vnode.h>
47 #include <sys/file.h>
48 #include <sys/fs/fifonode.h>
49 #include <sys/debug.h>
50 #include <sys/ddi.h>
55 #include <sys/conf.h>
56 #include <sys/modctl.h>
57
58 extern struct streamtab conninfo;
59
60 static struct fmodsw fsw = {
61 "connld",
62 &conninfo,
63 D_NEW | D_MP
64 };
65
66 /*
67 * Module linkage information for the kernel.
68 */
69
70 static struct modlstrmod modlstrmod = {
71 &mod_strmodops, "Streams-based pipes", &fsw
72 };
73
74 static struct modlinkage modlinkage = {
75 MODREV_1, { (void *)&modlstrmod, NULL }
76 };
77
78 int
79 _init()
80 {
81 return (mod_install(&modlinkage));
82 }
83
84 int
85 _fini()
86 {
87 return (mod_remove(&modlinkage));
88 }
89
90 int
91 _info(struct modinfo *modinfop)
92 {
93 return (mod_info(&modlinkage, modinfop));
94 }
95
|