<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOCommandPool/gatedReturnCommand",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOCommandPool@F@gatedReturnCommand#*$@S@IOCommand#"
  },
  "title" : "gatedReturnCommand"
}
-->

# gatedReturnCommand

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

## Parameters

`command`

A pointer to the IOCommand object to be returned to the pool.

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)