[libvirt] [PATCH 1/3] usb: create functions to search usb device accurately
Osier Yang
jyang at redhat.com
Mon Apr 30 13:55:31 UTC 2012
On 2012年04月28日 18:13, Guannan Ren wrote:
> usbFindDevice():get usb device according to
> idVendor, idProduct, bus, device
> it is the most strict search
>
> usbFindDevByBus():get usb device according to bus, device
> it returns only one usb device same as usbFindDevice
>
> usbFindDevByVendor():get usb device according to idVendor,idProduct
> it probably returns multiple usb devices.
>
> usbDeivceSearch(): a helper function to do the actual search
> ---
> src/util/hostusb.c | 162 ++++++++++++++++++++++++++++++++++++++-------------
> src/util/hostusb.h | 20 ++++++-
> 2 files changed, 138 insertions(+), 44 deletions(-)
>
Didn't review the patch yet, but apparently these new
functions is not added in src/libvirt_private.syms.
Osier
More information about the libvir-list
mailing list