Mac Developer Library

Developer

OSReturn.h Reference

Options
Deployment Target:

On This Page

OSReturn.h Reference

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable

Objective-C

@import Kernel;

Declares functions, basic return values, and other constants related to kernel extensions (kexts).

Included Headers

  • <sys/cdefs.h>

  • <mach/error.h>

Data Types

See the Overview section above for header-level documentation.

  • The return type for many Libkern functions.

    Declaration

    Objective-C

    typedef kern_return_t OSReturn;

    Import Statement

    Objective-C

    #include <OSReturn.h>;

    Availability

    Available in OS X v10.0 and later.

Constants

See the Overview section above for header-level documentation.

  • Declaration

    Objective-C

    #define kOSMetaClassDuplicateClass libkern_metaclass_err(10) #define kOSMetaClassHasInstances libkern_metaclass_err(2) #define kOSMetaClassInstNoSuper libkern_metaclass_err(9) #define kOSMetaClassInternal libkern_metaclass_err(1) #define kOSMetaClassNoDicts libkern_metaclass_err(5) #define kOSMetaClassNoInit libkern_metaclass_err(3) #define kOSMetaClassNoInsKModSet libkern_metaclass_err(7) #define kOSMetaClassNoKext libkern_metaclass_err(11) #define kOSMetaClassNoKModSet libkern_metaclass_err(6) #define kOSMetaClassNoSuper libkern_metaclass_err(8) #define kOSMetaClassNoTempData libkern_metaclass_err(4) #define kOSReturnError libkern_common_err(1) #define kOSReturnSuccess KERN_SUCCESS

    Constants

    • kOSMetaClassDuplicateClass

      kOSMetaClassDuplicateClass

      A duplicate Libkern C++ classname was encountered during kext loading.

      Available in OS X v10.0 and later.

    • kOSMetaClassHasInstances

      kOSMetaClassHasInstances

      A kext cannot be unloaded because there are instances derived from Libkern C++ classes that it defines.

      Available in OS X v10.0 and later.

    • kOSMetaClassInstNoSuper

      kOSMetaClassInstNoSuper

      Internal error: No superclass can be found when constructing an instance of a Libkern C++ class.

      Available in OS X v10.0 and later.

    • kOSMetaClassInternal

      kOSMetaClassInternal

      Internal OSMetaClass run-time error.

      Available in OS X v10.0 and later.

    • kOSMetaClassNoDicts

      kOSMetaClassNoDicts

      Internal error: An allocation failure occurred registering Libkern C++ classes during kext loading.

      Available in OS X v10.0 and later.

    • kOSMetaClassNoInit

      kOSMetaClassNoInit

      Internal error: The Libkern C++ class registration system was not properly initialized during kext loading.

      Available in OS X v10.0 and later.

    • kOSMetaClassNoInsKModSet

      kOSMetaClassNoInsKModSet

      Internal error: An error occurred registering a specific Libkern C++ class during kext loading.

      Available in OS X v10.0 and later.

    • kOSMetaClassNoKext

      kOSMetaClassNoKext

      Internal error: The kext for a Libkern C++ class can't be found during kext loading.

      Available in OS X v10.6 and later.

    • kOSMetaClassNoKModSet

      kOSMetaClassNoKModSet

      Internal error: An allocation failure occurred registering Libkern C++ classes during kext loading.

      Available in OS X v10.0 and later.

    • kOSMetaClassNoSuper

      kOSMetaClassNoSuper

      Internal error: No superclass can be found for a specific Libkern C++ class during kext loading.

      Available in OS X v10.0 and later.

    • kOSMetaClassNoTempData

      kOSMetaClassNoTempData

      Internal error: An allocation failure occurred registering Libkern C++ classes during kext loading.

      Available in OS X v10.0 and later.

    • kOSReturnError

      kOSReturnError

      Unspecified Libkern error. Not equal to KERN_FAILURE.

      Available in OS X v10.0 and later.

    • kOSReturnSuccess

      kOSReturnSuccess

      Operation successful. Equal to KERN_SUCCESS.

      Available in OS X v10.0 and later.