On Fri, 19 Nov 2004, Sachin Rane wrote: > Hi, > > I tried it out on Windows 2000. > > I have confirmed from a reliable source that USB floppy drive doesn't > provide serial number. > > Do you know any method (API/ IOCTL) to get the USB port information, on > which the Device is connected? As I have mentioned previously that I > tried to get that info from '/proc/bus/usb/devices'. But this method > fails if two similar floppy drive is connected (having same Vendor ID > and Product ID).
There is a SCSI ioctl you can use: SCSI_IOCTL_GET_IDLUN. You can also use SCSI_IOCTL_GET_BUS_NUMBER. Both will give you the host number, which you can compare with the entries in /proc/scsi. Alan Stern ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
