Notification of IOService open
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hello all, Thanks for any/all input, Braden _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I have an IOService that needs to know when another IOService calls open on a third IOService. To give the specific example, at boot time the IOBSDConsole calls open on any IOHIKeyboard. Later, the IOHIDSystem "seizes" ownership of the IOHIKeyboard from the IOBSDConsole by calling open on the IOHIKeyboard with the kIOServiceSeize bit set. I want to know if it is possible to be notified when that seizure occurs. I tried adding a notification for the IOHIDSystem (gIOMatchedNotification, to be specific) whose handler then adds another notification for the IOHIKeyboard, but even after receiving this notification the client is still the console and not the hid system. I was thinking maybe my IOService could call open on the IOHIKeyboard with the kIOServiceSeize bit set to claim ownership from the console. But then I still would have no way of knowing (AFAIK) of telling when the IOHIDSystem seized ownership from my service -- unless someone on this list can tell me how that's done.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Braden Thomas