Re: Get notified when a USB storage device connected?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi Jason, In the document "Accessing Hardware from Applications" there is a section on how to get notified when a device arrives or departs: http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingH... Thank you a lot for this pointer. Anyway, is it possible to get notified from inside kernel? I have 2 choices: get notified to application, or to kernel. Kernel notified would be better for me. If it is impossible, I will go to the other way. Are you an IOKit kext? At 14:56 +0900 on 9/6/06, NAHieu wrote: On 9/6/06, Jason Seng <jseng@apple.com> wrote: If so, look at the method "setNotification" in IOService. The technique is very similar to what's described in "Accessing Hardware from Applications". -- ______________________________________________________ Arguing with an engineer is like wrestling with a pig in mud. After a while, you realize the pig is enjoying it. ______________________________________________________ Kevin Elliott <mailto:kelliott@mac.com> AIM/iChatAV: kelliott@mac.com (video chat available) ______________________________________________________ _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Elliott