---
title: returnCommand
framework: kernel
role: pseudoSymbol
path: kernel/iocommandpool/1811102-returncommand
---

# returnCommand

## Declaration

```occ
virtual void returnCommand(
 IOCommand *commmand); 
```

## Parameters

- `commmand`: The command to place in the pool.

## Overview

Overview The returnCommand method is used to place an object of type IOCommand into the pool, whether it be the first time, or the 1000th time.

## See Also

### Miscellaneous

- [commandPool](kernel/iocommandpool/1811017-commandpool.md)
- [gatedGetCommand](kernel/iocommandpool/1811028-gatedgetcommand.md)
- [gatedReturnCommand](kernel/iocommandpool/1811045-gatedreturncommand.md)
- [getCommand](kernel/iocommandpool/1811062-getcommand.md)
- [init](kernel/iocommandpool/1811075-init.md)
- [initWithWorkLoop](kernel/iocommandpool/1811086-initwithworkloop.md)
- [withWorkLoop(IOService *, IOWorkLoop *, UInt32)](kernel/iocommandpool/1811120-withworkloop.md)
- [withWorkLoop(IOWorkLoop *)](kernel/iocommandpool/1811136-withworkloop.md)
