subsys_find_device_by_id(9)

subsys_find_device_by_id9

Find a device with a specific enumeration number

Usage

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

Overview

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.

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.