Contents

IOConnectSetNotificationPort(_:_:_:_:)

Set a port to receive family specific notifications.

Declaration

func IOConnectSetNotificationPort(_ connect: io_connect_t, _ type: UInt32, _ port: mach_port_t, _ reference: UInt) -> kern_return_t

Parameters

  • connect:

    The connect handle created by 1514515 Ioserviceopen.

  • type:

    The type of notification requested, not interpreted by IOKit and family defined.

  • port:

    The port to which to send notifications.

  • reference:

    Some families may support passing a reference parameter for the callers use with the notification.

Return Value

A kern_return_t error code.

Discussion

This is a generic method to pass a Mach port send right to be used by family specific notifications.

See Also

Miscellaneous