PCI_PCIE_CAP(9) Hardware Interfaces PCI_PCIE_CAP(9)
NAME
pci_pcie_cap - get the saved PCIe capability offset
SYNOPSIS
int pci_pcie_cap(struct pci_dev * dev);
ARGUMENTS
dev
PCI device
DESCRIPTION
PCIe capability offset is calculated at PCI device initialization time and saved in the data structure. This function returns saved PCIe
capability offset. Using this instead of pci_find_capability reduces unnecessary search in the PCI configuration space. If you need to
calculate PCIe capability offset from raw device for some reasons, please use pci_find_capability instead.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 PCI_PCIE_CAP(9)