Re: launchd vs IOKit intialization
Re: launchd vs IOKit intialization
- Subject: Re: launchd vs IOKit intialization
- From: Dave Zarzycki <email@hidden>
- Date: Fri, 02 Nov 2007 06:47:22 -0700
On Nov 2, 2007, at 4:19 AM, Stéphane Sudre wrote:
Is there supposed to be a defined launch order for launchd and IOKit
kexts?
Not in the traditional sense. We have IOKit APIs to accomplish the
ordering you may desire.
From what I can see on Leopard, launchd can launch daemons before
all the IOKit kexts are loaded.
Yup.
I then have one question if the answer is that these 2 processes can
run at the same time:
If you load a IOKit kext from a launchd script, can it cause trouble
when the IOKit startup procedure tries to launch it just before that
or just after that?
IOKit vends APIs to dynamically be notified on the availability of
hardware/drivers. In today's hot-plug world, I'd suggest that you
modify your program to use those APIs. Once you've done that, the use
of launchd does not change the outcome of your program.
davez
_______________________________________________
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