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



Mike Smith writes:
 > 
 > On May 6, 2005, at 2:48 PM, Andrew Gallatin wrote:
 > 
 > >> Could you give us a little more to go on, please?  I'm really
 > >> interested in getting rid of KUNCExecute(), but I can't find any
 > ...
 > > I use devfs to dynamically create character devices nodes when my
 > > driver is loaded.  So I think I can probably use the WatchPaths
 > > directive to watch for my character device nodes appearing.  It will
 > > require a wrapper shell script....  Hmm..
 > 
 > Yuck!

Yeah,  I forgot how kqueue notifications work.  I can't be notified
when my device node is created, without watching all of /dev, which
is not practical.

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

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

Thanks,

Drew


 _______________________________________________
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>)



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.