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

NAME

6       pci_get_bus_and_slot - locate PCI device from a given PCI bus & slot
7

SYNOPSIS

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

ARGUMENTS

13       bus
14           number of 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

NOTE

22       the bus/slot search is limited to PCI domain (segment) 0.
23
24       Given a PCI bus and slot/function number, the desired PCI device is
25       located in system global list of PCI devices. If the device is found, a
26       pointer to its data structure is returned. If no device is found, NULL
27       is returned. The returned device has its reference count bumped by one.
28
30Kernel Hackers Manual 2.6.         June 2019           PCI_GET_BUS_AND_SLOT(9)
Impressum