Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launchd vs IOKit intialization



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >launchd vs IOKit intialization (From: Stéphane Sudre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.