getxerror(9f) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

getxerror(9f)

geterror(9F)                   Kernel Functions                   geterror(9F)



NAME
       geterror, getxerror - return I/O error information

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

       int geterror(struct buf *bp);
       b_xerror_t getxerror(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 b_error field
       of the buf(9S) buffer header structure. This value is typically set  by
       device driver use of bioerror(9F) or bioxerror(9F).


       The  getxerror()  function returns the extended error from the b_xerror
       field of the buf(9S) buffer header structure. This value  is  typically
       set by a device driver use of bioxerror(9F).

RETURN VALUES
       For  geterror(),  an  intro(2)  system call error number indicating the
       error condition of the I/O request is returned. If the I/O request com‐
       pletes successfully, 0 is returned.


       For  getxerror(),  the  extended  error  value  of  the  I/O request is
       returned. If geterror() indicates that the I/O request failed,  and  no
       driver  established  an  extended error via bioxerror(9F), B_XERR_UNDE‐
       FINED is returned. If geterror() indicates that the  I/O  request  suc‐
       ceeded,  getxerror() may return B_XERR_RECOVERED if driver error recov‐
       ery operations were necessary for success.

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

SEE ALSO
       buf(9S), bioerror(9F), bioxerror(9F), intro(2)


       Writing Device Drivers in Oracle Solaris 11.4



Oracle Solaris 11.4               26 Jan 2018                     geterror(9F)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3