#include <sys/scsi/scsi.h>
Solaris DDI specific (Solaris DDI).
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);
tran_destroy_pkt(9E), scsi_init_pkt(9F), scsi_pkt(9S)
Writing Device Drivers