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

# DataServiced

Responds to the removal of data from the queue.

```
virtual void DataServiced(OSAction *action);
```

## Parameters

`action`

The action object being executed.

## Discussion

Use this method as a prototype for declaring your own custom data-queue handler. When declaring your method, use the [`TYPE`](/documentation/DriverKit/TYPE) macro to indicate that your method has the same parameters and return value as this method.

Use the implementation of your method to add more data to the queue or perform other relevant tasks.

---

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)