.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "PCI_FIND_SLOT" "" "06 October 2005" "" "" .SH NAME pci_find_slot \- locate PCI device from a given PCI slot .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp struct pci_dev * pci_find_slot (unsigned int \fIbus\fB, unsigned int \fIdevfn\fB); \fR .SH "ARGUMENTS" .TP \fB\fIbus\fB\fR number of PCI bus on which desired PCI device resides .TP \fB\fIdevfn\fB\fR 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. .SH "DESCRIPTION" .PP 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, NULL is returned.