<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOService/CallPlatformFunction",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOService@F@CallPlatformFunction#*$@S@OSString#b#*$@S@OSDictionary#*S2_#"
  },
  "title" : "CallPlatformFunction"
}
-->

# CallPlatformFunction

```
virtual kern_return_t CallPlatformFunction(OSString *functionName, bool waitForFunction, OSDictionary *inParam, OSDictionary **outParam);
```

## Parameters

`functionName`

Name of the function to be called.

`waitForFunction`

If true, CallPlatformFunction will not
return until the function has been called.

`inParam`

Dictionary containing the input parameters.

`outParam`

Pointer to a storage that will contain the output parameters.

## Return Value

An IOReturn code; kIOReturnSuccess if the function was successfully
executed, kIOReturnUnsupported if a service to execute the function
could not be found. Other return codes may be returned by the function.

## Discussion

\abstract Calls the platform function with the given name.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)