---
title: gatedReturnCommand
framework: kernel
role: pseudoSymbol
path: kernel/iocommandpool/1811045-gatedreturncommand
---

# gatedReturnCommand

## Declaration

```occ
virtual IOReturn gatedReturnCommand(
 IOCommand *vCommand); 
```

## Parameters

- `vCommand`: A pointer to the IOCommand object to be returned to the pool.

## Return Value

Return Value Always returns kIOReturnSuccess if the vCommand argument is valid.

## Overview

Overview The gatedReturnCommand method is used to serialize the return of a command to the pool behind a command gate, runAction-ed by returnCommand.

## See Also

### Miscellaneous

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