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


NAME

 bioerror - indicate error in buffer header

SYNOPSIS

 
#include <sys/types.h>
#include <sys/buf.h>
#include <sys/ddi.h>
void bioerror(struct buf *bp, int error);

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI)

PARAMETERS

 
bp
Pointer to the buf(9S) structure describing the transfer.
error
Error number to be set, or zero to clear an error indication.

DESCRIPTION

 

If error is non-zero, bioerror() indicates an error has occured in the buf(9S) structure. A subsequent call to geterror(9F) will return error.

If error is 0, the error indication is cleared and a subsequent call to geterror(9F) will return 0.

CONTEXT

 

bioerror() can be called from any context.

SEE ALSO

 

strategy(9E), geterror(9F), getrbuf(9F), buf(9S)


SunOS 5.9Go To TopLast Changed 26 May 1994

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