Contents

errnoFromReturn

Translates an IOReturn code to a BSD errno.

Declaration

virtual int errnoFromReturn(
 IOReturnrtn );

Parameters

  • rtn:

    The IOReturn code.

Return Value

The BSD errno or EIO if unknown.

Overview

BSD defines its own return codes for its functions in sys/errno.h, and I/O Kit families may need to supply compliant results in BSD shims. Results are available for the standard return codes in IOReturn.h in IOService, while subclasses may implement this method to interpret family dependent return codes.

See Also

Miscellaneous