---
name: "pci_find_capability"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_find_capability"
---

# pci\_find\_capability(9)

query for devices' capabilities

## NAME

pci\_find\_capability - query for devices' capabilities

## SYNOPSIS

**int pci\_find\_capability(struct pci\_dev \*** *dev***, int** *cap***);**

## ARGUMENTS

*dev*

PCI device to query

*cap*

capability code

## DESCRIPTION

Tell if a device supports a given PCI capability. Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it. Possible values for *cap*:

**PCI\_CAP\_ID\_PM** Power Management **PCI\_CAP\_ID\_AGP** Accelerated Graphics Port **PCI\_CAP\_ID\_VPD** Vital Product Data **PCI\_CAP\_ID\_SLOTID** Slot Identification **PCI\_CAP\_ID\_MSI** Message Signalled Interrupts **PCI\_CAP\_ID\_CHSWP** CompactPCI HotSwap **PCI\_CAP\_ID\_PCIX** PCI-X **PCI\_CAP\_ID\_EXP** PCI Express

## COPYRIGHT
