'\" t .\" Title: acpi_match_device .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "ACPI_MATCH_DEVICE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" acpi_match_device \- Match a struct device against a given list of ACPI IDs .SH "SYNOPSIS" .HP \w'const\ struct\ acpi_device_id\ *\ acpi_match_device('u .BI "const struct acpi_device_id * acpi_match_device(const\ struct\ acpi_device_id\ *\ " "ids" ", const\ struct\ device\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIids\fR .RS 4 Array of struct acpi_device_id object to match against\&. .RE .PP \fIdev\fR .RS 4 The device structure to match\&. .RE .SH "DESCRIPTION" .PP Check if \fIdev\fR 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\&. .PP Return a pointer to the first matching ID on success or \fBNULL\fR on failure\&. .SH "COPYRIGHT" .br