[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    geterror(9F) manual page Table of Contents

Name

geterror - return I/O error

Synopsis


#include <sys/types.h>
#include <sys/buf.h>
#include <sys/ddi.h>

int geterror(struct buf *bp);

Interface Level

Architecture independent level 1 (DDI/DKI).

Arguments

bp
Pointer to a buf(9S) structure.

Description

geterror() returns the error number from the error field of the buffer header structure.

Return Values

An error number indicating the error condition of the I/O request is returned. If the I/O request completes successfully, 0 is returned.

Context

geterror() can be called from user or interrupt context.

See Also

buf(9S)


Table of Contents