---
name: "subsys_find_device_by_id"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/subsys_find_device_by_id"
---

# subsys\_find\_device\_by\_id(9)

find a device with a specific enumeration number

## NAME

subsys\_find\_device\_by\_id - find a device with a specific enumeration number

## SYNOPSIS

**struct device \* subsys\_find\_device\_by\_id(struct bus\_type \*** *subsys***, unsigned int** *id***, struct device \*** *hint***);**

## ARGUMENTS

*subsys*

subsystem

*id*

index 'id' in struct device

*hint*

device to check first

## DESCRIPTION

Check the hint's next object and if it is a match return it directly, otherwise, fall back to a full list search. Either way a reference for the returned object is taken.

## COPYRIGHT
