pub extern "C-unwind" fn IOConnectSetNotificationPort(
connect: io_connect_t,
type: u32,
port: mach_port_t,
reference: usize,
) -> kern_return_tAvailable on crate feature
libc only.Expand description
Set a port to receive family specific notifications.
This is a generic method to pass a mach port send right to be be used by family specific notifications.
Parameter connect: The connect handle created by IOServiceOpen.
Parameter type: The type of notification requested, not interpreted by IOKit and family defined.
Parameter port: The port to which to send notifications.
Parameter reference: Some families may support passing a reference parameter for the callers use with the notification.
Returns: A kern_return_t error code.