---
title: handleCommand
framework: kernel
role: pseudoSymbol
path: kernel/ioatacontroller/1811902-handlecommand
---

# handleCommand

Called by executeCommand() to handle the client command from the workloop context.

## Declaration

```occ
virtual IOReturn handleCommand(
 void *command, 
 void *param1 = 0, 
 void *param2 = 0, 
 void *param3 = 0); 
```

## Parameters

- `command`: The command code.
- `param1`: Command parameter.
- `param2`: Command parameter.
- `param3`: Command parameter.

## Return Value

Return Value kIOReturnSuccess on success, or an error code otherwise.

## See Also

### Miscellaneous

- [busCanDispatch](kernel/ioatacontroller/1811873-buscandispatch.md)
- [dispatchNext](kernel/ioatacontroller/1811887-dispatchnext.md)
