5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 #include <sys/types.h>
27 #include <sys/systm.h>
28 #include <sys/param.h>
29 #include <sys/user.h>
30 #include <sys/vm.h>
31 #include <sys/conf.h>
32 #include <sys/class.h>
33 #include <sys/vfs.h>
34 #include <sys/vnode.h>
35 #include <sys/mount.h>
36 #include <sys/systm.h>
37 #include <sys/modctl.h>
38 #include <sys/exec.h>
39 #include <sys/exechdr.h>
40 #include <sys/devops.h>
41 #include <sys/ddi.h>
42 #include <sys/sunddi.h>
43 #include <sys/cmn_err.h>
44 #include <sys/hwconf.h>
45 #include <sys/ddi_impldefs.h>
46 #include <sys/autoconf.h>
47 #include <sys/disp.h>
48 #include <sys/kmem.h>
49 #include <sys/instance.h>
50 #include <sys/modhash.h>
51 #include <sys/dacf.h>
52 #include <sys/debug.h>
53 #include <ipp/ipp.h>
54 #include <sys/strsubr.h>
55 #include <sys/kcpc.h>
56 #include <sys/brand.h>
57 #include <sys/cpc_pcbe.h>
58 #include <sys/kstat.h>
59 #include <sys/socketvar.h>
60 #include <sys/kiconv.h>
61
62 extern int moddebug;
63
64 extern struct cb_ops no_cb_ops;
65 extern struct dev_ops nodev_ops;
66 extern struct dev_ops mod_nodev_ops;
67
68 extern struct modctl *mod_getctl(struct modlinkage *);
69 extern int errsys(), nodev(), nulldev();
70
71 extern int findmodbyname(char *);
72 extern int mod_getsysnum(char *);
73
74 extern struct execsw execsw[];
75
76 /*
77 * Define dev_ops for unused devopsp entry.
78 */
79 struct dev_ops mod_nodev_ops = {
80 DEVO_REV, /* devo_rev */
81 0, /* refcnt */
82 ddi_no_info, /* info */
83 nulldev, /* identify */
|
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25 /*
26 * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
27 */
28
29 #include <sys/types.h>
30 #include <sys/systm.h>
31 #include <sys/param.h>
32 #include <sys/user.h>
33 #include <sys/vm.h>
34 #include <sys/conf.h>
35 #include <sys/class.h>
36 #include <sys/vfs.h>
37 #include <sys/vnode.h>
38 #include <sys/mount.h>
39 #include <sys/systm.h>
40 #include <sys/modctl.h>
41 #include <sys/exec.h>
42 #include <sys/exechdr.h>
43 #include <sys/devops.h>
44 #include <sys/ddi.h>
45 #include <sys/sunddi.h>
46 #include <sys/cmn_err.h>
47 #include <sys/hwconf.h>
48 #include <sys/ddi_impldefs.h>
49 #include <sys/autoconf.h>
50 #include <sys/disp.h>
51 #include <sys/kmem.h>
52 #include <sys/instance.h>
53 #include <sys/modhash.h>
54 #include <sys/dacf.h>
55 #include <sys/debug.h>
56 #include <ipp/ipp.h>
57 #include <sys/strsubr.h>
58 #include <sys/kcpc.h>
59 #include <sys/brand.h>
60 #include <sys/cpc_pcbe.h>
61 #include <sys/kstat.h>
62 #include <sys/socketvar.h>
63 #include <sys/kiconv.h>
64
65 extern struct cb_ops no_cb_ops;
66 extern struct dev_ops nodev_ops;
67 extern struct dev_ops mod_nodev_ops;
68
69 extern struct modctl *mod_getctl(struct modlinkage *);
70 extern int errsys(), nodev(), nulldev();
71
72 extern int findmodbyname(char *);
73 extern int mod_getsysnum(char *);
74
75 extern struct execsw execsw[];
76
77 /*
78 * Define dev_ops for unused devopsp entry.
79 */
80 struct dev_ops mod_nodev_ops = {
81 DEVO_REV, /* devo_rev */
82 0, /* refcnt */
83 ddi_no_info, /* info */
84 nulldev, /* identify */
|