47 * Local static data
48 */
49
50 /*
51 * global data
52 */
53
54 /*
55 * This is the loadable module wrapper
56 */
57 #include <sys/modctl.h>
58
59 extern struct mod_ops mod_miscops;
60
61 static struct modlmisc modlmisc = {
62 &mod_miscops, /* Type of module */
63 "Generic Direct Attached Device Utilities"
64 };
65
66 static struct modlinkage modlinkage = {
67 MODREV_1, (void *)&modlmisc, NULL
68 };
69
70 int
71 _init(void)
72 {
73 return (mod_install(&modlinkage));
74 }
75
76 int
77 _fini(void)
78 {
79 #ifdef GDA_DEBUG
80 if (gda_debug & DENT)
81 PRF("gda_fini: call\n");
82 #endif
83 return (mod_remove(&modlinkage));
84 }
85
86 int
87 _info(struct modinfo *modinfop)
|
47 * Local static data
48 */
49
50 /*
51 * global data
52 */
53
54 /*
55 * This is the loadable module wrapper
56 */
57 #include <sys/modctl.h>
58
59 extern struct mod_ops mod_miscops;
60
61 static struct modlmisc modlmisc = {
62 &mod_miscops, /* Type of module */
63 "Generic Direct Attached Device Utilities"
64 };
65
66 static struct modlinkage modlinkage = {
67 MODREV_1, { (void *)&modlmisc, NULL }
68 };
69
70 int
71 _init(void)
72 {
73 return (mod_install(&modlinkage));
74 }
75
76 int
77 _fini(void)
78 {
79 #ifdef GDA_DEBUG
80 if (gda_debug & DENT)
81 PRF("gda_fini: call\n");
82 #endif
83 return (mod_remove(&modlinkage));
84 }
85
86 int
87 _info(struct modinfo *modinfop)
|