You could possibly look for the device in /proc/bus/usb/devices
Babu, Narendra (GE Healthcare) wrote: > Hi All, > > > I am a application developer on Linux. > Currently I am working on an USB application where I need to check > whether the device is connected or not. > > > Description: > > Linux kernel version 2.4 > Whenever a USB device is getting connected, hotplug will recognize this > and mount it on to a mount point "/mnt/usb" > Application will know only "/mnt/usb" as the device. > Suddenly if the user unplug the device without unmounting the device , > the mount point will still remain in the system. > Later whenever application access this mount point (through statvfs() > call) , the operation will be success even though the device is not > connected. > Please let me know is there any other way of verifying the USB device > existence by using the mount point ("/mnt/usb") as my application will > have only this info. > > Thanks In Advance, > Narendra Babu H.C. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Linux-usb-users@lists.sourceforge.net > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users