---
title: OSKextLoadKextWithIdentifier
framework: kernel
role: symbol
role_heading: Function
path: kernel/1508323-oskextloadkextwithidentifier
---

# OSKextLoadKextWithIdentifier

Request that a kext be loaded.

## Declaration

```occ
OSReturn OSKextLoadKextWithIdentifier(const char *kextIdentifier);
```

## Parameters

- `kextIdentifier`: The bundle identifier of the kext to be loaded.

## Return Value

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

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_alloc](kernel/1577598-kext_alloc.md)
- [kext_alloc_init](kernel/1577599-kext_alloc_init.md)
- [kext_free](kernel/1577600-kext_free.md)
- [kext_request](kernel/1588829-kext_request.md)
- [kextd_ping](kernel/1520989-kextd_ping.md)
- [OSKextCancelRequest](kernel/1508350-oskextcancelrequest.md)
- [OSKextGetCurrentIdentifier](kernel/1508305-oskextgetcurrentidentifier.md)
- [OSKextGetCurrentLoadTag](kernel/1508336-oskextgetcurrentloadtag.md)
- [OSKextGetCurrentVersionString](kernel/1508326-oskextgetcurrentversionstring.md)
- [OSKextGrabPgoData](kernel/1508333-oskextgrabpgodata.md)
- [OSKextReleaseKextWithLoadTag](kernel/1508339-oskextreleasekextwithloadtag.md)
- [OSKextRequestResource](kernel/1508294-oskextrequestresource.md)
- [OSKextResetPgoCounters](kernel/1646298-oskextresetpgocounters.md)
- [OSKextResetPgoCountersLock](kernel/1646299-oskextresetpgocounterslock.md)
- [OSKextResetPgoCountersUnlock](kernel/1646297-oskextresetpgocountersunlock.md)
- [OSKextRetainKextWithLoadTag](kernel/1508272-oskextretainkextwithloadtag.md)
