---
title: allocCommand
framework: kernel
role: pseudoSymbol
path: kernel/ioatadevice/1813891-alloccommand
---

# allocCommand

create IOATACommands. Device drivers should allocate command objects only through this method.

## Declaration

```occ
virtual IOATACommand* allocCommand(
 void ); 
```

## Return Value

Return Value null if allocation failed. Retain count is one.

## See Also

### Miscellaneous

- [executeCommand](kernel/ioatadevice/1813893-executecommand.md)
- [freeCommand](kernel/ioatadevice/1813895-freecommand.md)
- [getDeviceType](kernel/ioatadevice/1813897-getdevicetype.md)
- [getUnitID](kernel/ioatadevice/1813899-getunitid.md)
- [matchLocation](kernel/ioatadevice/1813901-matchlocation.md)
- [matchPropertyTable(OSDictionary *)](kernel/ioatadevice/1813903-matchpropertytable.md)
- [matchPropertyTable(OSDictionary *, SInt32 *)](kernel/ioatadevice/1813905-matchpropertytable.md)
- [notifyEvent](kernel/ioatadevice/1813907-notifyevent.md)
- [provideBusInfo](kernel/ioatadevice/1813909-providebusinfo.md)
- [provideConfig](kernel/ioatadevice/1813911-provideconfig.md)
- [selectConfig](kernel/ioatadevice/1813913-selectconfig.md)
