---
title: OSKextRequestResourceCallback
framework: kernel
role: symbol
role_heading: Type Alias
path: kernel/oskextrequestresourcecallback
---

# OSKextRequestResourceCallback

Invoked to provide results for a kext resource request.

## Declaration

```occ
typedef void (*OSKextRequestResourceCallback)(OSKextRequestTag requestTag, OSReturn result, const void *resourceData, uint32_t resourceDataLength, void *context);
```

## Parameters

- `requestTag`: The tag of the request that the callback pertains to.
- `result`: The result of the request: kOSReturnSuccess if the request was fulfilled; kOSKextReturnTimeout if the request has timed out; kOSKextReturnStopping if the kext containing the callback address for the kext is being unloaded; or other values on error.
- `resourceData`: A pointer to the requested resource data. Owned by the system; the kext should make a copy if it needs to keep the data past the callback.
- `resourceDataLength`: The length of resourceData.
- `context`: The context pointer originally passed to doc://com.apple.documentation/documentation/kernel/1508294-oskextrequestresource.

## See Also

### Callback Methods

- [OSActionAbortedHandler](kernel/osactionabortedhandler.md)
- [OSActionCancelHandler](kernel/osactioncancelhandler.md)
- [OSDispatchMethod](kernel/osdispatchmethod.md)
- [OSObjectApplierFunction](kernel/osobjectapplierfunction.md)
- [OSSerializerBlock](kernel/osserializerblock.md)
- [OSSerializerCallback](kernel/osserializercallback.md)
