pci_find_next_ht_capability(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

pci_find_next_ht_capability β€” okay bestie, in this Kernel API Manual page for pci_find_next_ht_capability(9), this is the helper that queries a device's HyperTransport capabilities. It's literally the "keep looking" bestie for HyperTransport capability hunting.

✨ SYNOPSIS ✨

u8 pci_find_next_ht_capability (struct pci_dev *dev , u8 pos , int ht_cap );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the PCI device to query. Like, the device in question, main character energy.
  • pos β€” the position from which to continue searching. Don't lose your spot, bestie.
  • ht_cap β€” the HyperTransport capability code. The code we're matching.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so use this together with pci_find_ht_capability to search for all capabilities matching ht_cap. The pos you feed it should always be a value returned from pci_find_ht_capability β€” not something you just invented, no cap.

NB: to be 100% safe against broken PCI devices, the caller should take steps to avoid an infinite loop. This is the "protect your loop" warning, fr fr. 😭

🌈 SEE ALSO 🌈

Kernel file ./drivers/pci/pci.c, plus the whole SEE ALSO crew:


Cute sign-off bestie: this page lives under ./drivers/pci, dated October 2026, and it's the manual for pci_find_next_ht_capability(9). Go find those capabilities, periodt. πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from