---
title: OSKextGetCurrentLoadTag
framework: kernel
role: symbol
role_heading: Function
path: kernel/1508336-oskextgetcurrentloadtag
---

# OSKextGetCurrentLoadTag

Returns the run-time load tag for the calling kext as an OSKextLoadTag.

## Declaration

```occ
OSKextLoadTag OSKextGetCurrentLoadTag(void);
```

## Return Value

Return Value The run-time load tag for the calling kext as an OSKextLoadTag.

## Discussion

Discussion The load tag identifies this loaded instance of the kext to the kernel and to kernel functions that operate on kexts.

## 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)
- [OSKextGetCurrentVersionString](kernel/1508326-oskextgetcurrentversionstring.md)
- [OSKextGrabPgoData](kernel/1508333-oskextgrabpgodata.md)
- [OSKextLoadKextWithIdentifier](kernel/1508323-oskextloadkextwithidentifier.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)
