[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    scsi_destroy_pkt(9F) manual page Table of Contents

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).

Arguments

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.

Example


    scsi_destroy_pkt(un->un_rqs);

See Also

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


Table of Contents