.\" 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_GET_SLOT" "9" "09 October 2005" "" ""
.SH NAME
pci_get_slot \- locate PCI device for a given PCI slot
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct pci_dev * pci_get_slot (struct pci_bus * \fIbus\fB, unsigned int \fIdevfn\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbus\fB\fR
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 the list of PCI devices.
If the device is found, its reference count is increased and this
function returns a pointer to its data structure. The caller must
decrement the reference count by calling \fBpci_dev_put\fR\&.
If no device is found, NULL is returned.