Kernel Functions for Drivers scsidestroypkt(9F)
NAME
scsidestroypkt - free an allocated SCSI packet and its DMA
resource
SYNOPSIS
#include
void scsidestroypkt(struct scsipkt *pktp);
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
PARAMETERS
pktp Pointer to a scsipkt(9S) structure.
DESCRIPTION
The scsidestroypkt() function releases all necessary
resources, typically at the end of an I/O transfer. The data
is synchronized to memory, then the DMA resources are deal-
located and pktp is freed.
CONTEXT
The scsidestroypkt() function may be called from user,
interrupt, or kernel context.
EXAMPLES
Example 1 Releasing resources
scsidestroypkt(un->unrqs);
SEE ALSO
trandestroypkt(9E), scsiinitpkt(9F), scsipkt(9S)
Writing Device Drivers
SunOS 5.11 Last change: 16 Jan 2006 1
|