Returns a mach_port to be used to listen for notifications.
- macOS 10.0+
- Mac Catalyst 13.0+
The notification object.
A mach_port for the notification object.
A notification object may deliver notifications to a mach messaging client if they listen for messages on the port obtained from this function. Callbacks associated with the notifications may be delivered by calling IODispatchCalloutFromMessage with messages received.
The caller should not release this mach_port_t. Just call
IONotification to dispose of the mach_port_t and IONotificationPortRef when done.