#include <sys/scsi/scsi.h>
void scsi_unslave(struct scsi_device *devp);
void scsi_unprobe(struct scsi_device *devp);
scsi_unprobe() and scsi_unslave() are used to free any resources that were allocated on the driver’s behalf during scsi_slave(9F) and scsi_probe(9F) activity.
scsi_unprobe() and scsi_unslave() may be called from either the user or the interrupt levels.