Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversscsi_destroy_pkt(9F)


NAME

 scsi_destroy_pkt - free an allocated SCSI packet and its DMA resource

SYNOPSIS

 
#include <sys/scsi/scsi.h>
void scsi_destroy_pkt(struct scsi_pkt *pktp);

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI).

PARAMETERS

 
pktp
Pointer to a scsi_pkt(9S) structure.

DESCRIPTION

 

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.

CONTEXT

 

scsi_destroy_pkt() may be called from user or interrupt context.

EXAMPLES

 Example 1. Releasing resources.
 

 
scsi_destroy_pkt(un->un_rqs);

SEE ALSO

 

tran_destroy_pkt(9E), scsi_init_pkt(9F), scsi_pkt(9S)

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 30 Aug 1995

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.