Disconnects the caller from an IOService after receiving power state change notifications from the IOService. (Caller must also release IORegisterApp's return io_connect_t and returned IONotificationPortRef for complete clean-up).
- macOS 10.0+
- Mac Catalyst 13.0+
An object from IORegisterApp.
Returns kIOReturnSuccess or an error condition if request failed.