]> git.ipfire.org Git - thirdparty/libvirt.git/commit
pci: new utility functions
authorLaine Stump <laine@laine.org>
Fri, 31 May 2013 15:06:32 +0000 (11:06 -0400)
committerLaine Stump <laine@laine.org>
Mon, 24 Jun 2013 21:33:38 +0000 (17:33 -0400)
commit50a8d8503539c2d25d10ae7666c7e5a35143f876
treeed90717d2a5cc5987e9229433f60becceb752ceb
parent53e52b4ac336d5775e994cf8c79aa7444f44ce1a
pci: new utility functions

* virPCIDeviceFindByIDs - find a device on a list w/o creating an object
    This makes searching for an existing device on a list lighter weight.

* virPCIDeviceCopy - make a copy of an existing virPCIDevice object.

* virPCIDeviceGetDriverPathAndName - construct new strings containing
    1) the name of the driver bound to this device.
    2) the full path to the sysfs config for that driver.
    (This code was lifted from virPCIDeviceUnbindFromStub, and replaced
    there with a call to this new function).
src/libvirt_private.syms
src/util/virpci.c
src/util/virpci.h