On Friday 21 January 2022 15:31:42 Martin Mareš wrote: > Hello! > > > Both procfs and sysfs provides information about used PCI driver. > > Add support for a new libpci string property PCI_FILL_DRIVER, fill it in > > both procfs ans sysfs provides and use it in lspci instead of lspci own > > sysfs code for retrieving driver. > > Is there any meaningful difference in the reported data? Reported data are exactly same. Just with this change lspci can report driver also for non-sysfs backend (e.g. procfs backend or new WIP win32 backend). Basically sysfs logic from lspci executable was moved into the libpci library and therefore now it is available also for other applications. So difference for -A linux-proc is following: Without this patch series: ./lspci -A linux-proc -s 00:02.0 -v 00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller]) Subsystem: Dell 4th Gen Core Processor Integrated Graphics Controller Flags: bus master, fast devsel, latency 0, IRQ 33 Memory at f5800000 (64-bit, non-prefetchable) [size=4M] Memory at d0000000 (64-bit, prefetchable) [size=256M] I/O ports at f000 [size=64] Expansion ROM at 000c0000 [virtual] [disabled] [size=128K] Capabilities: <access denied> And with this patch series: ./lspci -A linux-proc -s 00:02.0 -v 00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller]) Subsystem: Dell 4th Gen Core Processor Integrated Graphics Controller Flags: bus master, fast devsel, latency 0, IRQ 33 Memory at f5800000 (64-bit, non-prefetchable) [size=4M] Memory at d0000000 (64-bit, prefetchable) [size=256M] I/O ports at f000 [size=64] Expansion ROM at 000c0000 [virtual] [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: i915