The driver should perform standard detach operations. See "detach(9E)".
Example 15-2 provides an example of the isp_detach() function.
static int isp_detach(dev_info_t *dip, ddi_detach_cmd_t cmd) { switch (cmd) { case DDI_DETACH: /* * At present, detaching HBA drivers is not supported */ return (DDI_FAILURE); default: return (DDI_FAILURE); } }