xref: /titanic_52/usr/src/man/man9f/bioerror.9f (revision 174bc6499d233e329ecd3d98a880a7b07df16bfa)
te
Copyright (c) 1994, Sun Microsystems, Inc.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
BIOERROR 9F "May 26, 1994"
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)