33
34 #include <sys/nsctl/nsctl.h>
35 #include <sys/nsctl/nsvers.h>
36 #include "rdc_stub.h"
37
38 static void null_dispatch(struct svc_req *req, SVCXPRT *xprt);
39 static void (*dispatch)(struct svc_req *, SVCXPRT *) = null_dispatch;
40
41 /*
42 * Solaris module setup.
43 */
44 extern struct mod_ops mod_miscops;
45
46 static struct modlmisc modlmisc = {
47 &mod_miscops, /* Type of module */
48 "nws:Remote Mirror kRPC Stub:" ISS_VERSION_STR
49 };
50
51 static struct modlinkage modlinkage = {
52 MODREV_1,
53 &modlmisc,
54 NULL
55 };
56
57
58 int
59 _init(void)
60 {
61 return (mod_install(&modlinkage));
62 }
63
64
65 int
66 _fini(void)
67 {
68 /* unload is forbidden */
69 return (EBUSY);
70 }
71
72
73 int
74 _info(struct modinfo *modinfop)
|
33
34 #include <sys/nsctl/nsctl.h>
35 #include <sys/nsctl/nsvers.h>
36 #include "rdc_stub.h"
37
38 static void null_dispatch(struct svc_req *req, SVCXPRT *xprt);
39 static void (*dispatch)(struct svc_req *, SVCXPRT *) = null_dispatch;
40
41 /*
42 * Solaris module setup.
43 */
44 extern struct mod_ops mod_miscops;
45
46 static struct modlmisc modlmisc = {
47 &mod_miscops, /* Type of module */
48 "nws:Remote Mirror kRPC Stub:" ISS_VERSION_STR
49 };
50
51 static struct modlinkage modlinkage = {
52 MODREV_1,
53 { &modlmisc, NULL }
54 };
55
56
57 int
58 _init(void)
59 {
60 return (mod_install(&modlinkage));
61 }
62
63
64 int
65 _fini(void)
66 {
67 /* unload is forbidden */
68 return (EBUSY);
69 }
70
71
72 int
73 _info(struct modinfo *modinfop)
|