'\" t .\" Title: pci_dev_present .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PCI_DEV_PRESENT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * 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" pci_dev_present \- Returns 1 if device matching the device list is present, 0 if not\&. .SH "SYNOPSIS" .HP \w'int\ pci_dev_present('u .BI "int pci_dev_present(const\ struct\ pci_device_id\ *\ " "ids" ");" .SH "ARGUMENTS" .PP \fIids\fR .RS 4 A pointer to a null terminated list of struct pci_device_id structures that describe the type of PCI device the caller is trying to find\&. .RE .SH "DESCRIPTION" .PP Obvious fact: You do not have a reference to any device that might be found by this function, so if that device is removed from the system right after this function is finished, the value will be stale\&. Use this function to find devices that are usually built into a system, or for a general hint as to if another device happens to be present at this specific moment in time\&. .SH "COPYRIGHT" .br