Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

buf(9S)

geterror(9F)

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)

Writing Device Drivers

SunOS 5.5/SPARC  —  Last change: 11 Apr 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026