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


1832         xdb_attach,     /* devo_attach */
1833         xdb_detach,     /* devo_detach */
1834         nodev,          /* devo_reset */
1835         NULL,           /* devo_cb_ops */
1836         NULL,           /* devo_bus_ops */
1837         NULL,           /* power */
1838         ddi_quiesce_not_needed, /* quiesce */
1839 };
1840 
1841 /*
1842  * Module linkage information for the kernel.
1843  */
1844 static struct modldrv modldrv = {
1845         &mod_driverops,                     /* Type of module. */
1846         "vbd backend driver",           /* Name of the module */
1847         &xdb_dev_ops                        /* driver ops */
1848 };
1849 
1850 static struct modlinkage xdb_modlinkage = {
1851         MODREV_1,
1852         &modldrv,
1853         NULL
1854 };
1855 
1856 int
1857 _init(void)
1858 {
1859         int rv;
1860 
1861         if ((rv = ddi_soft_state_init((void **)&xdb_statep,
1862             sizeof (xdb_t), 0)) == 0)
1863                 if ((rv = mod_install(&xdb_modlinkage)) != 0)
1864                         ddi_soft_state_fini((void **)&xdb_statep);
1865         return (rv);
1866 }
1867 
1868 int
1869 _fini(void)
1870 {
1871         int rv;
1872 
1873         if ((rv = mod_remove(&xdb_modlinkage)) != 0)




1832         xdb_attach,     /* devo_attach */
1833         xdb_detach,     /* devo_detach */
1834         nodev,          /* devo_reset */
1835         NULL,           /* devo_cb_ops */
1836         NULL,           /* devo_bus_ops */
1837         NULL,           /* power */
1838         ddi_quiesce_not_needed, /* quiesce */
1839 };
1840 
1841 /*
1842  * Module linkage information for the kernel.
1843  */
1844 static struct modldrv modldrv = {
1845         &mod_driverops,                     /* Type of module. */
1846         "vbd backend driver",           /* Name of the module */
1847         &xdb_dev_ops                        /* driver ops */
1848 };
1849 
1850 static struct modlinkage xdb_modlinkage = {
1851         MODREV_1,
1852         { &modldrv, NULL }

1853 };
1854 
1855 int
1856 _init(void)
1857 {
1858         int rv;
1859 
1860         if ((rv = ddi_soft_state_init((void **)&xdb_statep,
1861             sizeof (xdb_t), 0)) == 0)
1862                 if ((rv = mod_install(&xdb_modlinkage)) != 0)
1863                         ddi_soft_state_fini((void **)&xdb_statep);
1864         return (rv);
1865 }
1866 
1867 int
1868 _fini(void)
1869 {
1870         int rv;
1871 
1872         if ((rv = mod_remove(&xdb_modlinkage)) != 0)