---
title: gatedReturnCommand
framework: driverkit
role: symbol
role_heading: Instance Method
path: driverkit/iocommandpool/gatedreturncommand
---

# gatedReturnCommand

## Declaration

```occ
virtual kern_return_t gatedReturnCommand(IOCommand *command);
```

## Parameters

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

## Return Value

Return Value kIOReturnSuccess on success. See IOReturn.h for error codes.

## Discussion

Discussion The gatedReturnCommand method is used to serialize the return of a command to the pool synchronized with the pool’s queue.
