]> xenbits.xensource.com Git - libvirt.git/commit
util: pci: Introduce virPCIGetMdevTypes helper
authorErik Skultety <eskultet@redhat.com>
Fri, 19 Jan 2018 19:33:43 +0000 (20:33 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 29 Jan 2018 14:34:30 +0000 (15:34 +0100)
commit6eb1f2b9d06b1b68b7feee440b99de498a56c313
treead42ba4ef706560464025a0cb67a40023b671610
parent3545cbef7fb1184f88dffd7e0edf84b103ac20a7
util: pci: Introduce virPCIGetMdevTypes helper

This is a replacement for the existing udevPCIGetMdevTypesCap which is
static to the udev backend. This simple helper constructs the sysfs path
from the device's base path for each mdev type and queries the
corresponding attributes of that type.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/libvirt_private.syms
src/util/virpci.c
src/util/virpci.h