On May 13, 2005, at 1:15 PM, Andrew Gallatin wrote:
You ought to be able to register a service with launchd against a
'known'
port, and then simply message the port to have your service launched.
This is probably the easiest way to get launch/message-on-demand
semantics out of the kernel at this point.
Thank you, but I think you've just totally confused me. All that I
know about mach ipc could be written on the head of a pin, with plenty
of room for dancing angels. So please take pity.
What's a known port? How is it reserved so somebody else won't get
stomped on? How do I send a message to this port from my driver? Can
you point me at an example which does this?
Not off the top of my head, but this is well within the domain of the
new
launchd. I'd start by looking for examples there.
It sounds like this could essentially be used like a mach version of
FreeBSD's devd, where I can send a message to devd from my driver via
devctl_notify(). This message then causes my user level daemon to be
started...