Hi Karl,

Thanks for the information.
Unfortunately my application will know only the mount points like
"/mnt/usb"
It will not know which usb device is attached to this mount point.

Thanks,
Narendra

-----Original Message-----
From: Karl Hiramoto [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 24, 2007 4:16 PM
To: Babu, Narendra (GE Healthcare)
Cc: linux-usb-users@lists.sourceforge.net
Subject: Re: [Linux-usb-users] How to check the USB device existence

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

Reply via email to