18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 #include <sys/types.h>
27 #include <sys/sunddi.h>
28 #include <sys/errno.h>
29 #include <sys/modctl.h>
30
31 #include <io/ksocket/ksocket_impl.h>
32
33 static struct modlmisc modlmisc = {
34 &mod_miscops, KSOCKET_MOD_VERSION
35 };
36
37 static struct modlinkage modlinkage = {
38 MODREV_1, (void *)&modlmisc, NULL
39 };
40
41 int
42 _init(void)
43 {
44 return (mod_install(&modlinkage));
45 }
46
47 int
48 _fini(void)
49 {
50 return (mod_remove(&modlinkage));
51 }
52
53 int
54 _info(struct modinfo *modinfop)
55 {
56 return (mod_info(&modlinkage, modinfop));
57 }
|
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 #include <sys/types.h>
27 #include <sys/sunddi.h>
28 #include <sys/errno.h>
29 #include <sys/modctl.h>
30
31 #include <io/ksocket/ksocket_impl.h>
32
33 static struct modlmisc modlmisc = {
34 &mod_miscops, KSOCKET_MOD_VERSION
35 };
36
37 static struct modlinkage modlinkage = {
38 MODREV_1, { (void *)&modlmisc, NULL }
39 };
40
41 int
42 _init(void)
43 {
44 return (mod_install(&modlinkage));
45 }
46
47 int
48 _fini(void)
49 {
50 return (mod_remove(&modlinkage));
51 }
52
53 int
54 _info(struct modinfo *modinfop)
55 {
56 return (mod_info(&modlinkage, modinfop));
57 }
|