<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >pci_find_slot</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="The Linux Kernel API" HREF="book1.html"><LINK REL="UP" TITLE="PCI Support Library" HREF="x8182.html"><LINK REL="PREVIOUS" TITLE="PCI Support Library" HREF="x8182.html"><LINK REL="NEXT" TITLE="pci_find_subsys" HREF="r8218.html"></HEAD ><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >The Linux Kernel API</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="x8182.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="r8218.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="AEN8184" ></A ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >pci_find_slot</SPAN ></SPAN ></H1 ><DIV CLASS="REFNAMEDIV" ><A NAME="AEN8188" ></A ><H2 >Name</H2 >pci_find_slot -- locate PCI device from a given PCI slot </DIV ><DIV CLASS="REFSYNOPSISDIV" ><A NAME="AEN8191" ></A ><H2 >Synopsis</H2 ><DIV CLASS="FUNCSYNOPSIS" ><A NAME="AEN8193" ></A ><P ></P ><P ><CODE ><CODE CLASS="FUNCDEF" >struct pci_dev * <TT CLASS="FUNCTION" >pci_find_slot </TT ></CODE >(unsigned int <TT CLASS="PARAMETER" ><I >bus</I ></TT >, unsigned int <TT CLASS="PARAMETER" ><I >devfn</I ></TT >);</CODE ></P ><P ></P ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN8201" ></A ><H2 >Arguments</H2 ><P ></P ><DIV CLASS="VARIABLELIST" ><DL ><DT ><TT CLASS="PARAMETER" ><I >bus</I ></TT ></DT ><DD ><P > number of PCI bus on which desired PCI device resides </P ></DD ><DT ><TT CLASS="PARAMETER" ><I >devfn</I ></TT ></DT ><DD ><P > encodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices. </P ></DD ></DL ></DIV ></DIV ><DIV CLASS="REFSECT1" ><A NAME="AEN8214" ></A ><H2 >Description</H2 ><P > Given a PCI bus and slot/function number, the desired PCI device is located in system global list of PCI devices. If the device is found, a pointer to its data structure is returned. If no device is found, <TT CLASS="CONSTANT" >NULL</TT > is returned. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="x8182.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="r8218.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >PCI Support Library</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="x8182.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >pci_find_subsys</SPAN ></SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >