> Hello, > > I'm making good progress on the Devices application, I'm creating a > patch to include it in the Haiku tree (pending your thorough > inspection > and feedback, of course. ;-) ) > > I would like to display the used driver for a device (if possible > including the full path of the driver binary). Is it possible to add > the > used driver (if any) as an attribute? I see a device_node has a > driver_module_info (fDriver) which again has an module_info (info), > which has a name. > > Would this work only for new style drivers, or for all? Yes, old-style driver have weak relations with the hardware they use, they just iterate over the PCI or whichever bus, and use the device directly without reserving it. I added an API to do it for audio drivers but it's not yet much used. On /dev nodes one can use an ioctl() to ask for the driver name, but you must open() the device first which can be problematic. François.