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

NAME

6       pci_get_domain_bus_and_slot - locate PCI device for a given PCI domain
7       (segment), bus, and slot
8

SYNOPSIS

10       struct pci_dev * pci_get_domain_bus_and_slot(int domain,
11                                                    unsigned int bus,
12                                                    unsigned int devfn);
13

ARGUMENTS

15       domain
16           PCI domain/segment on which the PCI device resides.
17
18       bus
19           PCI bus on which desired PCI device resides
20
21       devfn
22           encodes number of PCI slot in which the desired PCI device resides
23           and the logical device number within that slot in case of
24           multi-function devices.
25

DESCRIPTION

27       Given a PCI domain, bus, and slot/function number, the desired PCI
28       device is located in the list of PCI devices. If the device is found,
29       its reference count is increased and this function returns a pointer to
30       its data structure. The caller must decrement the reference count by
31       calling pci_dev_put. If no device is found, NULL is returned.
32
34Kernel Hackers Manual 3.10         June 2019           PCI_GET_DOMAIN_BUS_A(9)
Impressum