Am Montag, 17. November 2003 17:08 schrieb Thorsten Wiedemer: > Hi list ! > > This is my first post on this list. > My name is Thorsten Wiedemer, and I make my first steps in USB driver > development for linux. > We want to connect multiple USB devices to one host. These devices are > identical but have to receive different data, depending on their topological > location in the USB tree. > This is why I want to register the device file names depending on this > location. > So, is it possible within the device driver to get the information where a > new device ist located in the USB tree ? > Can somebody give me information on this, or a hint where I can find further > information ?
If this is an issue of naming only I would strongly advise you to do this as a hotplugging script, not within the kernel driver. If your devices really need to be driven depending on topology (which means that they are mightly odd) you could follow the parent pointer of struct usb_device (assuming your working on 2.4), but this is unclean and you should have a very, very good justification. HTH Oliver ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel