---
name: "usb_find_device"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_find_device"
---

# usb\_find\_device(9)

find a specific usb device in the system

## NAME

usb\_find\_device - find a specific usb device in the system

## SYNOPSIS

**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

## DESCRIPTION

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.

## COPYRIGHT
