is the hiddev* allocation order guaranteed?

Folkert van Heusden <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization www.unixexpert.nl
Message-ID <[email protected]>
Hi,

I have 3 the same devices of the same brand, e.g. their vendor, product
and version fields in struct hiddev_devinfo are all the same. Two of
them are on the same bus, the third on some other bus.

   USB PORT 1     USB PORT 2
    |  |              |
    | device B       device C
   device A

Using udev these devices get a /dev/usb/hiddev[0-15] node allocated.
My question now is: will each device always have the same node? Will
device A always get for example /dev/usb/hiddev0? and C always
/dev/usb/hiddev2?
And if that is not the case, how can I then find those? Will it work if
I use busnum, devnum and ifnum?


Folkert van Heusden

-- 
MultiTail è uno flexible tool per seguire di logfiles e effettuazione
di commissioni. Feltrare, provedere da colore, merge, 'diff-view',
etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.