geterror(D3DK) —
NAME
geterror − retrieve error number from a buffer header
SYNOPSIS
#include <sys/buf.h>
int geterror(struct buf ∗bp);
ARGUMENTS
bpPointer to the buffer header.
DESCRIPTION
geterror is called to retrieve the error number from the error field of a buffer header (buf(D4DK) structure).
RETURN VALUE
An error number indicating the error condition of the I/O request is returned. If the I/O request completed successfully, 0 is returned.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.
SEE ALSO
buf(D4DK), errnos(D5DK)
DDI/DKI