Re: Passing arguments to application lauch through KUNCExecute() call
Re: Passing arguments to application lauch through KUNCExecute() call
- Subject: Re: Passing arguments to application lauch through KUNCExecute() call
- From: Michael Smith <email@hidden>
- Date: Mon, 26 Feb 2007 23:19:11 -0800
On Feb 26, 2007, at 10:39 PM, Yogesh Pahilwan wrote:
Thanks for your quick reply.
I am trying to send status of the some process from the write ()
routine of
my driver.
Say, My write () routine is writing data from one IOMedia to other
IOMedia
block by block, after all the blocks are written from one IOMedia
to other
IOMedia, I need to send some notification to my management
application.
As I am not able to do file I/O inside my driver, I am using
KUNCExecute ()
call which actually execute some executable where in I will do file
I/O and
update the status flag so that my management application read that
file and
check this flag value.
I am not able to figure out other options other than KUNCExecute () to
achieve this functionality.
Please suggest if there is other better approach where in I can
achieve this
functionality.
In the dominant internet lexicon: "OMGWTF".
The simplest method would be to poll a userclient method from your
management application; this is inelegant but trivial to implement.
You could even go so far as to simply poll a property managed by your
driver.
A more sophisticated approach would use the I/O Kit messaging
infrastructure, but making good use of this may require changes to
your management application; typically you will at minimum need a
runloop and some way to add a message source to it.
= Mike
_______________________________________________
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