On Tue, 28.12.10 14:14, José Félix Ontañón (felixonta@xxxxxxxxx) wrote: > Hi, everybody! > > Maybe this is kinda silly question but, I wonder why isn't > "ID_VENDOR_FROM_DATABASE / ID_MODEL_FROM_DATABASE"-like properties > imported by default using the pretty /lib/udev/usb-db and > /lib/udev/pci-db commands for every founded pci/usb device? > > I mean, by adding this simple rules: > > SUBSYSTEMS=="usb", IMPORT{program}="usb-db %p" > SUBSYSTEMS=="pci", IMPORT{program}="pci-db %p" > > I think this properties are very useful for apps that discover > hardware through udev, so they will not have to reinvent the wheel by > finding vendor/product names by themselves. Don't you think? The database lookup is a linear search. As long as we invoke it only for a small subset of devices that doesn't really matter much. But if we start to look it up for every device we should probably spend the time to improve the db lookup first. It's simply a question of efficiency. Lennart -- Lennart Poettering - Red Hat, Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html