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: Kext Load on demand and daemon communication



At 10:53 -0700 16/10/07, Eric Long wrote:
What's the secret to making this work?

It's not what you're missing, it's what the system is missing (-: Both I/O Kit and launchd are strongly oriented towards launch-on-demand semantics. What's missing, however, is a connection between the two. For example, you could imagine a world where your daemon's launchd property list file contains an I/O Kit matching dictionary, and launchd launches it whenever a matching I/O Kit service exists.


Alas, implementing this is tricky, because it would introduce a layering violation between launchd and I/O Kit. We're hoping to address this <rdar://problem/4551362>, but you won't see it for a while (you definitely won't see it on 26 Oct :-).

In the meantime, there are some less-than-ideal workarounds:

o As Shaun mentioned, there's KUNC.

o Another option is for your launchd property list to specify some on-demand criteria that your KEXT satisfies. For example, your launchd property list could register a UNIX domain socket with a well known path. When your KEXT comes up, it connects to that socket, thereby triggering the launch of your daemon.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden
References: 
 >Kext Load on demand and daemon communication (From: Eric Long <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.