static void ptdtor(struct cam_periph *periph) { struct pt_softc *softc; softc = (struct pt_softc *)periph->softc; devstat_remove_entry(&softc->device_stats); cam_extend_release(ptperiphs, periph->unit_number); xpt_print(periph->path, "removing device entry\n"); dev_ops_remove_minor(&pt_ops, periph->unit_number); kfree(softc, M_DEVBUF); }
static void ptdtor(struct cam_periph *periph) { struct pt_softc *softc; softc = (struct pt_softc *)periph->softc; devstat_remove_entry(&softc->device_stats); destroy_dev(softc->dev); cam_extend_release(ptperiphs, periph->unit_number); xpt_print_path(periph->path); printf("removing device entry\n"); free(softc, M_DEVBUF); }