Content-type: text/html Man page of geterror

geterror

Section: Kernel Functions for Drivers (9F)
Updated: 16 Jan 2006
Index Return to Main 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).  

PARAMETERS

bp Pointer to a buf(9S) structure.

 

DESCRIPTION

The geterror() function 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

The geterror() function can be called from user, interrupt, or kernel context.  

SEE ALSO

buf(9S)

Writing Device Drivers


 

Index

NAME
SYNOPSIS
INTERFACE LEVEL
PARAMETERS
DESCRIPTION
RETURN VALUES
CONTEXT
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:39:37 GMT, October 02, 2010