#include <sys/scsi/scsi.h>
void scsi_destroy_pkt(struct scsi_pkt *pktp);
scsi_destroy_pkt() releases all necessary resources, typically at the end of an I/O transfer. The data is synchronized to memory, then the DMA resources are deallocated and pktp is freed.
scsi_destroy_pkt() may be called from user or interrupt context.
scsi_destroy_pkt(un->un_rqs);