Re: launchd and kext dependency
Re: launchd and kext dependency
- Subject: Re: launchd and kext dependency
- From: Kevin Brock <email@hidden>
- Date: Mon, 11 Dec 2006 10:48:58 -0800
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.
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.
Kevin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden