---
name: "dmi_find_device"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/dmi_find_device"
---

# dmi\_find\_device(9)

find onboard device by type/name

## NAME

dmi\_find\_device - find onboard device by type/name

## SYNOPSIS

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

## DESCRIPTION

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.

## COPYRIGHT
