Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts


 108         drv_attach,             /* attach */
 109         drv_detach,             /* detach */
 110         nodev,                  /* reset */
 111         &drv_cb_ops,                /* driver operations */
 112         NULL,                   /* bus operations */
 113         nodev,                  /* dev power */
 114         ddi_quiesce_not_supported,      /* dev quiesce */
 115 };
 116 
 117 /*
 118  * Module linkage information for the kernel.
 119  */
 120 static  struct modldrv          drv_modldrv = {
 121         &mod_driverops,
 122         DLD_INFO,
 123         &drv_ops
 124 };
 125 
 126 static  struct modlinkage       drv_modlinkage = {
 127         MODREV_1,
 128         &drv_modldrv,
 129         NULL
 130 };
 131 
 132 int
 133 _init(void)
 134 {
 135         return (mod_install(&drv_modlinkage));
 136 }
 137 
 138 int
 139 _fini(void)
 140 {
 141         return (mod_remove(&drv_modlinkage));
 142 }
 143 
 144 int
 145 _info(struct modinfo *modinfop)
 146 {
 147         return (mod_info(&drv_modlinkage, modinfop));
 148 }
 149 




 108         drv_attach,             /* attach */
 109         drv_detach,             /* detach */
 110         nodev,                  /* reset */
 111         &drv_cb_ops,                /* driver operations */
 112         NULL,                   /* bus operations */
 113         nodev,                  /* dev power */
 114         ddi_quiesce_not_supported,      /* dev quiesce */
 115 };
 116 
 117 /*
 118  * Module linkage information for the kernel.
 119  */
 120 static  struct modldrv          drv_modldrv = {
 121         &mod_driverops,
 122         DLD_INFO,
 123         &drv_ops
 124 };
 125 
 126 static  struct modlinkage       drv_modlinkage = {
 127         MODREV_1,
 128         {   &drv_modldrv,
 129             NULL }
 130 };
 131 
 132 int
 133 _init(void)
 134 {
 135         return (mod_install(&drv_modlinkage));
 136 }
 137 
 138 int
 139 _fini(void)
 140 {
 141         return (mod_remove(&drv_modlinkage));
 142 }
 143 
 144 int
 145 _info(struct modinfo *modinfop)
 146 {
 147         return (mod_info(&drv_modlinkage, modinfop));
 148 }
 149