• 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: Passing arguments to application lauch through KUNCExecute() call
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >RE: Passing arguments to application lauch through KUNCExecute() call (From: "Yogesh Pahilwan" <email@hidden>)

  • Prev by Date: Regarding dual headed IOFramebuffer instances
  • Next by Date: Debugging a Kernel Panic
  • Previous by thread: RE: Passing arguments to application lauch through KUNCExecute() call
  • Next by thread: ip checksum routines
  • Index(es):
    • Date
    • Thread