| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hello, Another alternative is to search the IORegistry directly. There are a number of examples in /Developer/Examples/IOKit/usb/. If you are writing an application or daemon (as opposed to a command-line tool), doing one of these IORegistry searches, once started, incurs almost no overhead, because you are registering a callback with the OS. You can do a search on device class 8 (Mass Storage), and your callback will be called when devices of that class are connected, disconnected, etc. Implementing it this way would reduce the need to be polling external tools, which would lower the execution footprint of your app. Just a thought, Smith On Mar 5, 2007, at 10:12 AM, Herb Petschauer wrote:
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-userlevel mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-userlevel/email@hidden This email sent to email@hidden
| References: | |
| >Enumerate USB storage devices? (From: NAHieu <email@hidden>) | |
| >Re: Enumerate USB storage devices? (From: "Herb Petschauer" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.