---
title: "OSGetNotificationFromMessage(_:_:_:_:_:_:)"
framework: IOKit
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: iokit/1514263-osgetnotificationfrommessage
---

# OSGetNotificationFromMessage(_:_:_:_:_:_:)

## Declaration

```swift
func OSGetNotificationFromMessage(_ msg: UnsafeMutablePointer<mach_msg_header_t>!, _ index: UInt32, _ type: UnsafeMutablePointer<UInt32>!, _ reference: UnsafeMutablePointer<UInt>!, _ content: UnsafeMutablePointer<UnsafeMutableRawPointer?>!, _ size: UnsafeMutablePointer<vm_size_t>!) -> kern_return_t
```
