---
name: "pci_find_ht_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_ht_capability"
---

# pci\_find\_ht\_capability(9)

query a device's Hypertransport capabilities

## NAME

pci\_find\_ht\_capability - query a device's Hypertransport capabilities

## SYNOPSIS

**int pci\_find\_ht\_capability(struct pci\_dev \*** *dev***, int** *ht\_cap***);**

## ARGUMENTS

*dev*

PCI device to query

*ht\_cap*

Hypertransport capability code

## DESCRIPTION

Tell if a device supports a given Hypertransport capability. Returns an address within the device's PCI configuration space or 0 in case the device does not support the request capability. The address points to the PCI capability, of type PCI\_CAP\_ID\_HT, which has a Hypertransport capability matching *ht\_cap*.

## COPYRIGHT
