88 #include <nfs/nfs4_drc.h>
89
90 #include <sys/modctl.h>
91 #include <sys/cladm.h>
92 #include <sys/clconf.h>
93
94 #include <sys/tsol/label.h>
95
96 #define MAXHOST 32
97 const char *kinet_ntop6(uchar_t *, char *, size_t);
98
99 /*
100 * Module linkage information.
101 */
102
103 static struct modlmisc modlmisc = {
104 &mod_miscops, "NFS server module"
105 };
106
107 static struct modlinkage modlinkage = {
108 MODREV_1, (void *)&modlmisc, NULL
109 };
110
111 kmem_cache_t *nfs_xuio_cache;
112 int nfs_loaned_buffers = 0;
113
114 int
115 _init(void)
116 {
117 int status;
118
119 if ((status = nfs_srvinit()) != 0) {
120 cmn_err(CE_WARN, "_init: nfs_srvinit failed");
121 return (status);
122 }
123
124 status = mod_install((struct modlinkage *)&modlinkage);
125 if (status != 0) {
126 /*
127 * Could not load module, cleanup previous
128 * initialization work.
|
88 #include <nfs/nfs4_drc.h>
89
90 #include <sys/modctl.h>
91 #include <sys/cladm.h>
92 #include <sys/clconf.h>
93
94 #include <sys/tsol/label.h>
95
96 #define MAXHOST 32
97 const char *kinet_ntop6(uchar_t *, char *, size_t);
98
99 /*
100 * Module linkage information.
101 */
102
103 static struct modlmisc modlmisc = {
104 &mod_miscops, "NFS server module"
105 };
106
107 static struct modlinkage modlinkage = {
108 MODREV_1, { (void *)&modlmisc, NULL }
109 };
110
111 kmem_cache_t *nfs_xuio_cache;
112 int nfs_loaned_buffers = 0;
113
114 int
115 _init(void)
116 {
117 int status;
118
119 if ((status = nfs_srvinit()) != 0) {
120 cmn_err(CE_WARN, "_init: nfs_srvinit failed");
121 return (status);
122 }
123
124 status = mod_install((struct modlinkage *)&modlinkage);
125 if (status != 0) {
126 /*
127 * Could not load module, cleanup previous
128 * initialization work.
|