geterror(D3)geterror(D3)NAMEgeterror - 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.
DESCRIPTIONgeterror 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.
REFERENCESbuf(D4), errnos(D5)
Page 1