geterror(D3) geterror(D3)
NAME
geterror - retrieve error number from a buffer header
SYNOPSIS
#include <sys/buf.h>
#include <sys/ddi.h>
int geterror(struct buf_t *bp);
Arguments
bp Pointer to the buffer header.
DESCRIPTION
geterror is called to retrieve the error number from the error
field of a buffer header (buf(D4) structure).
Return Values
An error number indicating the error condition of the I/O
request is returned. If the I/O request completed
successfully, 0 is returned.
USAGE
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
buf(D4), errnos(D5)
NOTICES
Portability
All processors
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 1