]> git.ipfire.org Git - thirdparty/libvirt.git/commit
usb: create functions to search usb device accurately
authorGuannan Ren <gren@redhat.com>
Fri, 4 May 2012 07:49:58 +0000 (15:49 +0800)
committerGuannan Ren <gren@redhat.com>
Mon, 7 May 2012 15:36:22 +0000 (23:36 +0800)
commit9914477efc9764f691ca50faca6592a2d4fecec8
treeb0f83e1e27f8a5fda7fdf6e2d6ee523bd69c5968
parentf4345ac21fead319a22a5761e86a46752df23402
usb: create functions to search usb device accurately

usbFindDevice():get usb device according to
                idVendor, idProduct, bus, device
                it is the exact match of the four parameters

usbFindDeviceByBus():get usb device according to bus, device
                  it returns only one usb device same as usbFindDevice

usbFindDeviceByVendor():get usb device according to idVendor,idProduct
                     it probably returns multiple usb devices.

usbDeviceSearch(): a helper function to do the actual search
src/libvirt_private.syms
src/qemu/qemu_hostdev.c
src/qemu/qemu_hotplug.c
src/util/hostusb.c
src/util/hostusb.h