| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.