usb_find_device(9)

usb_find_device9

Find a specific usb device in the system

Usage

struct usb_device * usb_find_device(u16 vendor_id, u16 product_id);

Arguments

vendor_id

the vendor id of the device to find

product_id

the product id of the device to find

Overview

Returns a pointer to a struct usb_device if such a specified usb device is present in the system currently. The usage count of the device will be incremented if a device is found. Make sure to call usb_put_dev when the caller is finished with the device.

If a device with the specified vendor and product id is not found, NULL is returned.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.