• 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: Darwin-dev Digest, Vol 5, Issue 53
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Darwin-dev Digest, Vol 5, Issue 53


  • Subject: Re: Darwin-dev Digest, Vol 5, Issue 53
  • From: Michael Smith <email@hidden>
  • Date: Wed, 20 Feb 2008 12:41:59 -0800


On Feb 20, 2008, at 12:06 PM, email@hidden wrote:

In my app I'm using:
kernResult =  IOServiceAddMatchingNotification(
					   notificationObject,
					   kIOFirstMatchNotification,
					   IOServiceMatching(kIOUSBDeviceClassName),
					   callback,
					   handler,
					   &mediaIteratorAdded );

At the application level you should be talking to DiskArbitration, not I/O Kit directly. You are probably holding up matching for the device (possibly due to your callback not returning or returning the wrong status).


Any assumption you make about the state of the system (mounted filesystems, etc.) when this callback fires isn't going to be valid.

 = Mike

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: A Couple launchd user agent questions
  • Next by Date: Re: USB device prevented from mounting
  • Previous by thread: Re: A Couple launchd user agent questions
  • Next by thread: Sun RPC in OSX
  • Index(es):
    • Date
    • Thread