scsi_destroy_pkt(9F)
NAME
scsi_destroy_pkt − free an allocated SCSI packet and consistent DMA resource
SYNOPSIS
#include <sys/scsi/scsi.h>
void scsi_destroy_pkt(struct scsi_pkt ∗pktp);
ARGUMENTS
pktp Pointer to a scsi_pkt(9S) structure.
INTERFACE LEVEL
Solaris architecture specific (SunDDI).
DESCRIPTION
scsi_destroy_pkt() releases all necessary resources, typically at the end of an I/O transfer. The DMA resources are deallocated and then pktp is freed.
CONTEXT
scsi_destroy_pkt() may be called from user or interrupt context.
EXAMPLE
scsi_destroy_pkt(un->un_rqs);
SEE ALSO
scsi_init_pkt(9F), scsi_pkt(9S)
SunOS 5.1 Writing Device Drivers
SunOS 5.2 — Last change: 21 Dec 1992