On Wed, Dec 21, 2005 at 11:19:00AM -0500, Danny Budik wrote: > Hello All, > > I am trying to figure out how the linux kernel passes information about > USB devices to other programs. I have written a program that needs to > realize if I have plugged in a new USB device. My program can already > see/read/write to a device if it's plugged in before I start the > program. But, I need to be able to keep this program running always > and if I plug in a new USB device, my program needs to realize that it's > there. Is this possible in Linux?
Yes, register with HAL to get the events from it, as it gets notification from the kernel (through udev and dbus) that usb devices are added or removed. Hope this helps, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
