Comment 8 for bug 399319

Revision history for this message
Marc Tardif (cr3) wrote :

To illustrate the above schema, I have attached a script which parses the output from the command "udevadm info --export-db" and prints a simplified representation of each device on separate lines. The format for this representation should be simple enough to understand considering there are so few attributes.

Furthermore, I have taken this opportunity to introduce another element to the schema called "type". The motivation for this element is to generalize the concept of PCI class across all devices, so that devices can be categorized in accordance with enduser expectations.

Note that the script does not resolve names for pci and usb ids. However, this can be easily compensated by parsing the pci.ids and usb.ids file. At far as names are concerned, the important part at this point is to concentrate on other devices such as scsi for example which don't have such ids files.