At this point of the discussion I would like to point to the Device Registry
patch (http://www.tjansen.de/devreg) that already solves these problems and
offers stable device ids for the identification of devices and finding their
/dev nodes.
The devreg device id has four components: the bus identifier, the location of
the device (for pci bus number and slot number, for usb the bus number and a
list of port numbers), a model (product and device id) and, if available, a
serial number.
With the matching algorithm from the libdevreg library you can correctly
identifiy after a hotplug action or reboot
- each device that has a serial numberas most of the better USB devices do,
even if it location has changed
- a device without a serial number whose location has not changed
If you have a device without serial number and you changed its location the
device id can be used for a guess that is correct as long as you dont have
two devices of the same kind (same product and vendor ids).
bye...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/