---
name: "pci_find_next_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_next_ht_capability"
---

# pci\_find\_next\_ht\_capability(9)

query a device's Hypertransport capabilities

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

*dev*

PCI device to query

*pos*

Position from which to continue searching

*ht\_cap*

Hypertransport capability code

## DESCRIPTION

To be used in conjunction with **pci\_find\_ht\_capability** to search for all capabilities matching *ht\_cap*. *pos* should always be a value returned from **pci\_find\_ht\_capability**.

NB. To be 100% safe against broken PCI devices, the caller should take steps to avoid an infinite loop.

## COPYRIGHT
