Re: Kext Load on demand and daemon communication
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Oct 18, 2007, at 8:44 AM, Eric Long wrote: I looked at IOServiceAddMatchingNotification(). That seems pretty straight-forward. What I'm not clear on is what stage my driver will be in when I get a notice in my callback. The notification will be posted as a consequence of your driver calling registerService(). Right. Assuming you mean "registerService()", then yes, that's possible. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... But does that mean my daemon will receive that notice before the driver exits registerToService()? If my daemon connects to the kext, sends config data, and begins listening for messages from the kext, all from within the notification callback before returning, can I count on my driver's validateNewMedia() method not being called until after I return from the callback, in the normal sequence of events? Without seeing what you've implemented and having more time than I do to analyse it, I can't answer this. You should not, as a general rule, call registerService() until your driver is in a state where it is ready to be called into immediately. This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith