<!--
{
  "availability" : [
    "DriverKit: 19.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USBDriverKit",
  "identifier" : "/documentation/USBDriverKit/IOUSBHostPipe/Abort",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "USBDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUSBHostPipe@F@Abort#i#I#*$@S@IOService#"
  },
  "title" : "Abort"
}
-->

# Abort

Aborts all of the pipe’s pending I/O requests.

```
virtual kern_return_t Abort(IOOptionBits options, kern_return_t withError, IOService *forClient);
```

## Parameters

`options`

Options for how to abort the requests. For a list of possible values, see [`IOUSBAbortOptions`](/documentation/USBDriverKit/IOUSBAbortOptions).

`withError`

The error value to report for each request. Specify `kIOReturnAborted` for this parameter.

`forClient`

The service that initiated the requests. Specify a non `NULL` value for this parameter only for pipes associated with a control endpoint; specify `NULL` for other endpoint types. For a control endpoint, you can also specify `NULL` to abort all requests.

## Return Value

<doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> on success, or another value if an error occurs. See <doc://com.apple.documentation/documentation/DriverKit/error-codes>.

## Discussion

If the `options` argument includes `kAbortSynchronous`, this method blocks all new I/O requests except those submitted by an aborted completion routine.

---

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)