Re: launchd and kext dependency
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Dec 11, 2006, at 10:29 AM, Bhavesh Davda wrote: Is there a way to specify in a launchd.plist that it depends on a kext first being loaded during system boot? I have a daemon that should be launched by launchd only after the network drivers (e.g. com.apple.iokit.AppleYukon on a MacBook Pro) have been loaded. As far as I know this can't be done through the launchd plist. Kevin _______________________________________________ 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... When my daemon starts I check to see if the kext is running. If it's not running I use IONotificationPortGetRunLoopSource to get notified when it *does* start, and I do the KEXT related initialization then. Look at the IOKitLib documentation for this function and IOMasterPort/IOServiceMatching/IOServiceGetMatchingService etc. This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Brock