OSKextLoadKextWithIdentifier
Request that a kext be loaded.
Declaration
OSReturn OSKextLoadKextWithIdentifier(const char *kextIdentifier);Parameters
- kextIdentifier:
The bundle identifier of the kext to be loaded.
Return Value
kOSReturnSuccess if the kext was loaded (or was already loaded). kOSKextReturnDeferred if the kext was not found and a request was queued to kextd(8). Other return values indicate a failure to load the kext.
Discussion
If a kext is already in the kernel but not loaded, it is loaded immediately. If it isn't found, an asynchronous load request is made to kextd(8) and kOSKextReturnDeferred is returned. There is no general notification or callback mechanism for load requests.
See Also
kext
kext_allockext_alloc_initkext_freekext_requestkextd_pingOSKextCancelRequestOSKextGetCurrentIdentifierOSKextGetCurrentLoadTagOSKextGetCurrentVersionStringOSKextGrabPgoDataOSKextReleaseKextWithLoadTagOSKextRequestResourceOSKextResetPgoCountersOSKextResetPgoCountersLockOSKextResetPgoCountersUnlockOSKextRetainKextWithLoadTag