1geterror(9F)             Kernel Functions for Drivers             geterror(9F)
2
3
4

NAME

6       geterror - return I/O error
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <sys/buf.h>
11       #include <sys/ddi.h>
12
13
14
15       int geterror(struct buf *bp);
16
17

INTERFACE LEVEL

19       Architecture independent level 1 (DDI/DKI).
20

PARAMETERS

22       bp    Pointer to a buf(9S) structure.
23
24

DESCRIPTION

26       The  geterror() function returns the error number  from the error field
27       of the  buffer header structure.
28

RETURN VALUES

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

CONTEXT

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

SEE ALSO

38       buf(9S)
39
40
41       Writing Device Drivers
42
43
44
45SunOS 5.11                        16 Jan 2006                     geterror(9F)
Impressum