3537 nulldev, /* devo_probe */
3538 xdf_attach, /* devo_attach */
3539 xdf_detach, /* devo_detach */
3540 nodev, /* devo_reset */
3541 &xdf_cbops, /* devo_cb_ops */
3542 NULL, /* devo_bus_ops */
3543 NULL, /* devo_power */
3544 ddi_quiesce_not_supported, /* devo_quiesce */
3545 };
3546
3547 /*
3548 * Module linkage structures.
3549 */
3550 static struct modldrv modldrv = {
3551 &mod_driverops, /* Type of module. This one is a driver */
3552 "virtual block driver", /* short description */
3553 &xdf_devops /* driver specific ops */
3554 };
3555
3556 static struct modlinkage xdf_modlinkage = {
3557 MODREV_1, (void *)&modldrv, NULL
3558 };
3559
3560 /*
3561 * standard module entry points
3562 */
3563 int
3564 _init(void)
3565 {
3566 int rc;
3567
3568 xdf_major = ddi_name_to_major("xdf");
3569 if (xdf_major == (major_t)-1)
3570 return (EINVAL);
3571
3572 if ((rc = ddi_soft_state_init(&xdf_ssp, sizeof (xdf_t), 0)) != 0)
3573 return (rc);
3574
3575 xdf_vreq_cache = kmem_cache_create("xdf_vreq_cache",
3576 sizeof (v_req_t), 0, NULL, NULL, NULL, NULL, NULL, 0);
3577 xdf_gs_cache = kmem_cache_create("xdf_gs_cache",
|
3537 nulldev, /* devo_probe */
3538 xdf_attach, /* devo_attach */
3539 xdf_detach, /* devo_detach */
3540 nodev, /* devo_reset */
3541 &xdf_cbops, /* devo_cb_ops */
3542 NULL, /* devo_bus_ops */
3543 NULL, /* devo_power */
3544 ddi_quiesce_not_supported, /* devo_quiesce */
3545 };
3546
3547 /*
3548 * Module linkage structures.
3549 */
3550 static struct modldrv modldrv = {
3551 &mod_driverops, /* Type of module. This one is a driver */
3552 "virtual block driver", /* short description */
3553 &xdf_devops /* driver specific ops */
3554 };
3555
3556 static struct modlinkage xdf_modlinkage = {
3557 MODREV_1, { (void *)&modldrv, NULL }
3558 };
3559
3560 /*
3561 * standard module entry points
3562 */
3563 int
3564 _init(void)
3565 {
3566 int rc;
3567
3568 xdf_major = ddi_name_to_major("xdf");
3569 if (xdf_major == (major_t)-1)
3570 return (EINVAL);
3571
3572 if ((rc = ddi_soft_state_init(&xdf_ssp, sizeof (xdf_t), 0)) != 0)
3573 return (rc);
3574
3575 xdf_vreq_cache = kmem_cache_create("xdf_vreq_cache",
3576 sizeof (v_req_t), 0, NULL, NULL, NULL, NULL, NULL, 0);
3577 xdf_gs_cache = kmem_cache_create("xdf_gs_cache",
|