Hi,
If the qlc driver has instances 0 , 1 and 2 attached, how do I force driver
detach from, let's say instance 2 alone and give that instance to a different
driver let's say mayaqlc, which puts that device in target mode.
I have been experimenting with the following and it doesn't detach from the
driver. It is actually unused instance. With NDI_REMOVE it removes the node
and detaches but that is of no use.
/* Get to the specific instance of qlc driver */
dnp = &devnamesp[qlc_major];
dip = dnp->dn_head;
while (dip && (ddi_get_instance(dip) != instance)) {
dip = ddi_get_next(dip);
}
if (!dip)
return
ndi_devi_unconfig_driver(dip, NDI_UNCONFIG, qlc_major)
and then patching compatible property to mayaqlc
compat[0] = kmem_alloc(8, KM_SLEEP);
strcpy(compat[0], "mayaqlc");
err = ndi_prop_update_string_array(DDI_DEV_T_NONE, dip,
"compatible", (char **)compat, 1);
In Linux it was easy to call device_release_driver() and works like a charm.
Is there a different way to solving ths challenging problem. We are reaching
release deadline for Mayastor. http://www.pavitrasoft.com/mayastor and we need
your help.
Thanks in advance
Mani
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss