Query: geterror
OS: minix
Section: 9f
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
geterror(9F) Kernel Functions for Drivers geterror(9F)NAMEgeterror - return I/O errorSYNOPSIS#include <sys/types.h> #include <sys/buf.h> #include <sys/ddi.h> int geterror(struct buf *bp);INTERFACE LEVELArchitecture independent level 1 (DDI/DKI).PARAMETERSbp Pointer to a buf(9S) structure.DESCRIPTIONgeterror() returns the error number from the error field of the buffer header structure.RETURN VALUESAn error number indicating the error condition of the I/O request is returned. If the I/O request completes successfully, 0 is returned.CONTEXTgeterror() can be called from user or interrupt context.SEE ALSObuf(9S) Writing Device Drivers SunOS 5.10 11 Apr 1991 geterror(9F)