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: KUNCExecute problems




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...

Yes, although with considerably wider scope.

 = Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden
References: 
 >Re: KUNCExecute problems (From: Andrew Gallatin <email@hidden>)
 >Re: KUNCExecute problems (From: Andrew Gallatin <email@hidden>)
 >Re: KUNCExecute problems (From: Mike Smith <email@hidden>)
 >Re: KUNCExecute problems (From: Andrew Gallatin <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.