pci_find_ht_capability(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pci_find_ht_capability(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes, the whole manual, and yes, this page is pci_find_ht_capability(9), and yes it's about to be your new hyperfixation πŸ’…


✨ NAME ✨

pci_find_ht_capability β€” the girl whose entire job is querying a device's HyperTransport capabilities πŸ¦‹


🌸 SYNOPSIS 🌸

u8 pci_find_ht_capability (struct pci_dev *dev , int ht_cap );

like yeah. that's the whole vibe. one function, two args, returns a u8. iconic behaviour, no notes πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the PCI device you're querying. this is your main character, the one you're asking all the questions about πŸ’œ
  • ht_cap β€” the HyperTransport capability code you're looking for. it's the little identifier you hand over so the function knows what to hunt for πŸ”

⭐ DESCRIPTION ⭐

okay so here's the tea πŸ“ β€” this function tells you whether a device supports a given HyperTransport capability. that's it, that's the plot.

it returns an address within the device's PCI configuration space, or 0 if the device doesn't support the requested capability. so 0 = "nope, not here, don't ask again" πŸ’€ and anything else = "yep, found it, here's where it lives."

and like, that address it gives you back? it points to the PCI capability, of type PCI_CAP_ID_HT, which has a HyperTransport capability matching ht_cap. so it's not just any random address, it's the specific one that matches what you asked for πŸ‘‘

ngl this is genuinely useful and also very slay of it.


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file that lives here: ./drivers/pci/pci.c β€” go say hi 🫢

and now the part where I introduce you to literally everyone in PCI's group chat 😭 (in order, bestie, I'm not skipping a single one, you know I wouldn't do that to you):

like. that's the whole friend group. you're welcome πŸ’–


and that's the page!! tysm for reading all the way through, you absolute legend πŸ‘‘ this came from ./drivers/pci, dated October 2026, and pci_find_ht_capability(9) says bye bestie β€” go query some HyperTransport capabilities, periodt βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from