1PCI_GET_SLOT(9)               Hardware Interfaces              PCI_GET_SLOT(9)
2
3
4

NAME

6       pci_get_slot - locate PCI device for a given PCI slot
7

SYNOPSIS

9       struct pci_dev * pci_get_slot(struct pci_bus * bus,
10                                     unsigned int devfn);
11

ARGUMENTS

13       bus
14           PCI bus on which desired PCI device resides
15
16       devfn
17           encodes number of PCI slot in which the desired PCI device resides
18           and the logical device number within that slot in case of
19           multi-function devices.
20

DESCRIPTION

22       Given a PCI bus and slot/function number, the desired PCI device is
23       located in the list of PCI devices. If the device is found, its
24       reference count is increased and this function returns a pointer to its
25       data structure. The caller must decrement the reference count by
26       calling pci_dev_put. If no device is found, NULL is returned.
27
29Kernel Hackers Manual 2.6.       November 2011                 PCI_GET_SLOT(9)
Impressum