Re: darwin-kernel digest, Vol 2 #459 - 10 msgs
Re: darwin-kernel digest, Vol 2 #459 - 10 msgs
- Subject: Re: darwin-kernel digest, Vol 2 #459 - 10 msgs
- From: Jim Magee <email@hidden>
- Date: Wed, 21 Jan 2004 10:16:19 -0800
On Jan 20, 2004, at 5:27 AM, ollie wrote:
You could have your kext either launch the daemon using KUNCExecute or
else have it send a kernel event when ever it requires action from
your daemon. This will remove all polling from your current design.
Please, do NOT use KUNCExecute(). It's a "wing and a prayer" mechanism
(there are many situations where it will fail silently) only added for
people who were too stubborn to switch to the "driver down from the
daemon, not the out from the kernel" model of execution under Mac OS
X/Darwin. Each release, the timing of system boot changes, and
therefore the timing of when KUNCExecute() will succeed also changes.
There are several mechanism available to register the daemon from
user-space for launching only when needed. These are much more
reliable than the KUNCExecute() mechanism, as the user-level
dependencies are always satisfied before the daemon can be registered
in the first place.
--Jim
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.