IORegisterApp

Function IORegisterApp 

Source
pub unsafe extern "C-unwind" fn IORegisterApp(
    refcon: *mut c_void,
    the_driver: io_service_t,
    the_port_ref: *mut IONotificationPortRef,
    callback: IOServiceInterestCallback,
    notifier: *mut io_object_t,
) -> io_connect_t
๐Ÿ‘ŽDeprecated
Available on crate features libc and pwr_mgt only.
Expand description

DEPRECATED - An obsolete method for interacting with driver power state changes.

This function is obsolete and deprecated. To receive notifications of driver power state changes, Please use IOServiceAddInterestNotification with interest type gIOGeneralInterest instead.

ยงSafety

  • refcon must be a valid pointer.
  • the_port_ref must be a valid pointer.
  • callback must be implemented correctly.
  • notifier must be a valid pointer.