---
title: "IOServiceAddNotification(_:_:_:_:_:_:)"
framework: IOKit
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: iokit/1514382-ioserviceaddnotification
---

# IOServiceAddNotification(_:_:_:_:_:_:)

## Declaration

```swift
func IOServiceAddNotification(_ mainPort: mach_port_t, _ notificationType: UnsafePointer<CChar>!, _ matching: CFDictionary!, _ wakePort: mach_port_t, _ reference: UInt, _ notification: UnsafeMutablePointer<io_iterator_t>!) -> kern_return_t
```
