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_free_consistent_buf(9F)


NAME

 scsi_free_consistent_buf - free a previously allocated SCSI DMA I/O buffer

SYNOPSIS

 
#include <sys/scsi/scsi.h> 
void scsi_free_consistent_buf(struct buf *bp);

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI).

PARAMETERS

 
bp
Pointer to the buf(9S) structure.

DESCRIPTION

 

scsi_free_consistent_buf() frees a buffer header and consistent data buffer that was previously allocated using scsi_alloc_consistent_buf(9F).

CONTEXT

 

scsi_free_consistent_buf() may be called from either the user or the interrupt levels.

SEE ALSO

 

freerbuf(9F), scsi_alloc_consistent_buf(9F), buf(9S)

Writing Device Drivers

WARNING

 

scsi_free_consistent_buf() will call freerbuf(9F) to free the buf(9S) that was allocated before or during the call to scsi_alloc_consistent_buf(9F).

If consistent memory is bound to a scsi_pkt(9S), the pkt should be destroyed before freeing the consistent memory.


SunOS 5.9Go To TopLast Changed 20 Jul 1998

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