> mphipps1@xxxxxxxxxxxxxxxx wrote: > > > What about appending attributes to each driver, for example PCI > > > and Vendor ID...that could at least solve this problem...right? > > No one has this information except the driver and (maybe) the PCI > > bus > > manager, AFAIK. > > Note, this will be done differently in Haiku - for the drivers that > use > the new driver architecture, it knows exactly which driver servers > which device and hardware (and vice versa). > In R5 there is also this ioctl(): B_GET_DRIVER_FOR_DEVICE > Haven't tested it yet, but it's supposed to return the path to the > driver for a specific device. Yes it does: [revol@patrick ~/devel]$ ./getdriver /dev/misc/sysinfo driver: /boot/home/config/add-ons/kernel/drivers/bin/sysinfo [revol@patrick ~/devel]$ ./getdriver /dev/null driver: null François.