subsys_find_device_by_id
Prev | Device Drivers Base | Next

## 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.

Prev | Up | Next
bus_find_device_by_name | Home | bus_for_each_drv