Contents

IONotificationPortCreate(_:)

Creates and returns a notification object for receiving IOKit notifications of new devices or state changes.

Declaration

func IONotificationPortCreate(_ mainPort: mach_port_t) -> IONotificationPortRef!

Parameters

Return Value

A reference to the notification object.

Discussion

Creates the notification object to receive notifications from IOKit of new device arrivals or state changes. The notification object can be supply a CFRunLoopSource, or mach_port_t to be used to listen for events.

See Also

Miscellaneous