[Mesa-dev] [PATCH 0/2] loader: allow alternative methods for PCI identification.

Gary Wong gtw at gnu.org
Wed May 21 21:00:20 PDT 2014


loader_get_pci_id_for_fd() and loader_get_device_name_for_fd() now attempt
all available strategies to identify the hardware, instead of conditionally
compiling in a single test.  The existing libudev and DRM approaches have
been retained, and another simple alternative of looking up the answer in
the /sys filesystem (available on Linux) is added.

v2:

Break the patch into two independent commits.
Disable the sysfs test by default (unless overridden at configure time).

v3:

Include /dev prefix in sysfs_get_device_name_for_fd().
Remove the --disable-libudev option.
Conding style fixes.

Gary Wong (2):
  loader: allow attempting more than one method of PCI identification.
  loader: add optional /sys filesystem method for PCI identification.

 configure.ac        |  36 +++++++----
 src/loader/loader.c | 172 +++++++++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 181 insertions(+), 27 deletions(-)

-- 
1.9.2


More information about the mesa-dev mailing list