geterror(D3)
geterror - retrieve error number from a buffer header
As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.
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)