• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Kext Load on demand and daemon communication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Kext Load on demand and daemon communication


  • Subject: Re: Kext Load on demand and daemon communication
  • From: Quinn <email@hidden>
  • Date: Wed, 17 Oct 2007 09:46:54 +0100

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:
This email sent to email@hidden


References: 
 >Kext Load on demand and daemon communication (From: Eric Long <email@hidden>)

  • Prev by Date: Re: Kext Load on demand and daemon communication
  • Next by Date: Re: Launchd API documentation
  • Previous by thread: Re: Kext Load on demand and daemon communication
  • Next by thread: Launchd API documentation
  • Index(es):
    • Date
    • Thread