1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>pci_dev_present</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel API"><link rel="up" href="ch09s05.html" title="PCI Support Library"><link rel="prev" href="API-pci-get-class.html" title="pci_get_class"><link rel="next" href="API-pci-msi-vec-count.html" title="pci_msi_vec_count"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">pci_dev_present</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-pci-get-class.html">Prev</a> </td><th width="60%" align="center">PCI Support Library</th><td width="20%" align="right"> <a accesskey="n" href="API-pci-msi-vec-count.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-pci-dev-present"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>pci_dev_present — 2 Returns 1 if device matching the device list is present, 0 if not. 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">pci_dev_present </b>(</code></td><td>const struct pci_device_id * <var class="pdparam">ids</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1126812180"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>ids</code></em></span></dt><dd><p> 4 A pointer to a null terminated list of struct pci_device_id structures 5 that describe the type of PCI device the caller is trying to find. 6 </p></dd></dl></div></div><div class="refsect1"><a name="idp1126813900"></a><h2>Obvious fact</h2><p> 7 You do not have a reference to any device that might be found 8 by this function, so if that device is removed from the system right after 9 this function is finished, the value will be stale. Use this function to 10 find devices that are usually built into a system, or for a general hint as 11 to if another device happens to be present at this specific moment in time. 12</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-pci-get-class.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch09s05.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-pci-msi-vec-count.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">pci_get_class</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">pci_msi_vec_count</span></td></tr></table></div></body></html> 13