---
name: "acpi_match_device"
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/acpi_match_device"
---

# acpi\_match\_device(9)

Match a struct device against a given list of ACPI IDs

## NAME

acpi\_match\_device - Match a struct device against a given list of ACPI IDs

## SYNOPSIS

**const struct acpi\_device\_id \* acpi\_match\_device(const struct acpi\_device\_id \*** *ids***, const struct device \*** *dev***);**

## ARGUMENTS

*ids*

Array of struct acpi\_device\_id object to match against.

*dev*

The device structure to match.

## DESCRIPTION

Check if *dev* has a valid ACPI handle and if there is a struct acpi\_device object for that handle and use that object to match against a given list of device IDs.

Return a pointer to the first matching ID on success or **NULL** on failure.

## COPYRIGHT
