---
title: CallPlatformFunction
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/ioservice/callplatformfunction
---

# CallPlatformFunction

## Declaration

```occ
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

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

Discussion Calls the platform function with the given name.
