<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IOServiceNotificationDispatchSource",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOServiceNotificationDispatchSource"
  },
  "title" : "IOServiceNotificationDispatchSource"
}
-->

# IOServiceNotificationDispatchSource

```
class IOServiceNotificationDispatchSource;
```

## Topics

### Instance Methods

[`virtual kern_return_t Cancel(IODispatchSourceCancelHandler handler);`](/documentation/DriverKit/IOServiceNotificationDispatchSource/Cancel)

[`virtual kern_return_t CheckForWork(bool synchronous);`](/documentation/DriverKit/IOServiceNotificationDispatchSource/CheckForWork)

[`virtual kern_return_t CopyNextNotification(uint64_t *type, IOService **service, uint64_t *options);`](/documentation/DriverKit/IOServiceNotificationDispatchSource/CopyNextNotification)

[`kern_return_t DeliverNotifications(IOServiceNotificationBlock block);`](/documentation/DriverKit/IOServiceNotificationDispatchSource/DeliverNotifications)

[`virtual void ServiceNotificationReady(OSAction *action);`](/documentation/DriverKit/IOServiceNotificationDispatchSource/ServiceNotificationReady)

[`virtual kern_return_t SetEnableWithCompletion(bool enable, IODispatchSourceCancelHandler handler);`](/documentation/DriverKit/IOServiceNotificationDispatchSource/SetEnableWithCompletion)

[`virtual kern_return_t SetHandler(OSAction *action);`](/documentation/DriverKit/IOServiceNotificationDispatchSource/SetHandler)

[`virtual void free();`](/documentation/DriverKit/IOServiceNotificationDispatchSource/free)

[`virtual bool init();`](/documentation/DriverKit/IOServiceNotificationDispatchSource/init)

### Type Methods

[`static kern_return_t Create(OSDictionary *matching, uint64_t options, IODispatchQueue *queue, IOServiceNotificationDispatchSource **notification);`](/documentation/DriverKit/IOServiceNotificationDispatchSource/Create)

## Relationships

### Inherits From

[`IODispatchSource`](/documentation/DriverKit/IODispatchSource)

---

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)