dmi_find_device(9)

dmi_find_device9

Find onboard device by type/name

Usage

const struct dmi_device * dmi_find_device(int type, const char * name, const struct dmi_device * from);

Arguments

type

device type or DMI_DEV_TYPE_ANY to match all device types

name

device name string or NULL to match all

from

previous device found in search, or NULL for new search.

Overview

Iterates through the list of known onboard devices. If a device is found with a matching type and name, a pointer to its device structure is returned. Otherwise, NULL is returned. A new search is initiated by passing NULL as the from argument. If from is not NULL, searches continue from next device.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.