---
name: "pci_find_ext_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_ext_capability"
---

# pci\_find\_ext\_capability(9)

Find an extended capability

## NAME

pci\_find\_ext\_capability - Find an extended capability

## SYNOPSIS

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

## ARGUMENTS

*dev*

PCI device to query

*cap*

capability code

## DESCRIPTION

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

**PCI\_EXT\_CAP\_ID\_ERR** Advanced Error Reporting **PCI\_EXT\_CAP\_ID\_VC** Virtual Channel **PCI\_EXT\_CAP\_ID\_DSN** Device Serial Number **PCI\_EXT\_CAP\_ID\_PWR** Power Budgeting

## COPYRIGHT
