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

# AbortDeviceRequests

Aborts device requests that you made previously from the current device client.

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

## Parameters

`forClient`

The client that issued the requests.

`options`

Options to use when aborting requests. Specify `0` for this parameter.

`withError`

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

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

Use this method to abort any requests you made previously with the [`AsyncDeviceRequest`](/documentation/USBDriverKit/IOUSBHostDevice/AsyncDeviceRequest) method. This method aborts only the requests that the current device object initiated.

---

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)