1PCI_PCIE_CAP(9) Hardware Interfaces PCI_PCIE_CAP(9)
2
3
4
6 pci_pcie_cap - get the saved PCIe capability offset
7
9 int pci_pcie_cap(struct pci_dev * dev);
10
12 dev
13 PCI device
14
16 PCIe capability offset is calculated at PCI device initialization time
17 and saved in the data structure. This function returns saved PCIe
18 capability offset. Using this instead of pci_find_capability reduces
19 unnecessary search in the PCI configuration space. If you need to
20 calculate PCIe capability offset from raw device for some reasons,
21 please use pci_find_capability instead.
22
24Kernel Hackers Manual 3.10 June 2019 PCI_PCIE_CAP(9)