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?

If I plug in a USB device, a message shows up in one of my terminals
saying that a device has been plugged in.  Is there a system wide
message that is being sent that I can catch with my already running
program? Or, since /sbin/hotplug gets called automatically when a USB devices is plugged in, is the easiest way just to modify this script to open a socket to my program and to notify it that way?

Thanks for your input,
Danny


-------------------------------------------------------
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

Reply via email to