OSReturn.h Reference

Declared in
OSReturn.h

Overview

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.

OSReturn

The return type for many Libkern functions.

typedef kern_return_t OSReturn;
Availability
  • Available in OS X v10.0 and later.
Declared In
OSReturn.h

Constants

See the Overview section above for header-level documentation.

Miscellaneous Defines

   
#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

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

Available in OS X v10.0 and later.

Declared in OSReturn.h.

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.

Declared in OSReturn.h.

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.

Declared in OSReturn.h.

kOSMetaClassInternal

Internal OSMetaClass run-time error.

Available in OS X v10.0 and later.

Declared in OSReturn.h.

kOSMetaClassNoDicts

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

Available in OS X v10.0 and later.

Declared in OSReturn.h.

kOSMetaClassNoInit

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

Available in OS X v10.0 and later.

Declared in OSReturn.h.

kOSMetaClassNoInsKModSet

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

Available in OS X v10.0 and later.

Declared in OSReturn.h.

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.

Declared in OSReturn.h.

kOSMetaClassNoKModSet

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

Available in OS X v10.0 and later.

Declared in OSReturn.h.

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.

Declared in OSReturn.h.

kOSMetaClassNoTempData

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

Available in OS X v10.0 and later.

Declared in OSReturn.h.

kOSReturnError

Unspecified Libkern error. Not equal to KERN_FAILURE.

Available in OS X v10.0 and later.

Declared in OSReturn.h.

kOSReturnSuccess

Operation successful. Equal to KERN_SUCCESS.

Available in OS X v10.0 and later.

Declared in OSReturn.h.