mdi_pre_detach
if ((error = mdi_pre_detach(devi, cmd)) != DDI_SUCCESS) {
int mdi_pre_detach(dev_info_t *, ddi_detach_cmd_t);