Print this page
7127  remove -Wno-missing-braces from Makefile.uts


 163  */
 164 #include <sys/modctl.h>
 165 
 166 static struct fmodsw fsw = {
 167         "cryptmod",
 168         &cryptmod_info,
 169         D_MP | D_MTQPAIR
 170 };
 171 
 172 /*
 173  * Module linkage information for the kernel.
 174  */
 175 static struct modlstrmod modlstrmod = {
 176         &mod_strmodops,
 177         "STREAMS encryption module",
 178         &fsw
 179 };
 180 
 181 static struct modlinkage modlinkage = {
 182         MODREV_1,
 183         &modlstrmod,
 184         NULL
 185 };
 186 
 187 int
 188 _init(void)
 189 {
 190         return (mod_install(&modlinkage));
 191 }
 192 
 193 int
 194 _fini(void)
 195 {
 196         return (mod_remove(&modlinkage));
 197 }
 198 
 199 int
 200 _info(struct modinfo *modinfop)
 201 {
 202         return (mod_info(&modlinkage, modinfop));
 203 }
 204 




 163  */
 164 #include <sys/modctl.h>
 165 
 166 static struct fmodsw fsw = {
 167         "cryptmod",
 168         &cryptmod_info,
 169         D_MP | D_MTQPAIR
 170 };
 171 
 172 /*
 173  * Module linkage information for the kernel.
 174  */
 175 static struct modlstrmod modlstrmod = {
 176         &mod_strmodops,
 177         "STREAMS encryption module",
 178         &fsw
 179 };
 180 
 181 static struct modlinkage modlinkage = {
 182         MODREV_1,
 183         { &modlstrmod, NULL }

 184 };
 185 
 186 int
 187 _init(void)
 188 {
 189         return (mod_install(&modlinkage));
 190 }
 191 
 192 int
 193 _fini(void)
 194 {
 195         return (mod_remove(&modlinkage));
 196 }
 197 
 198 int
 199 _info(struct modinfo *modinfop)
 200 {
 201         return (mod_info(&modlinkage, modinfop));
 202 }
 203