pci_find_dvsec_capability(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 pci_find_dvsec_capability(9) 🌸

okay so bestie, welcome to the Kernel API Manual β€” today's episode is pci_find_dvsec_capability(9) and honestly it's giving tiny-function-big-responsibility πŸ’… she's short, she's sweet, she finds a thing.


✨ NAME ✨

pci_find_dvsec_capability β€” Find DVSEC for vendor πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

u16 pci_find_dvsec_capability (struct pci_dev *dev , u16 vendor , u16
dvsec );

πŸ’– ARGUMENTS πŸ’–

  • dev β€” the PCI device you're querying, like "hey girl what's in your config space" πŸ”
  • vendor β€” the Vendor ID that this DVSEC has to match, no cap she's picky
  • dvsec β€” the Designated Vendor-specific capability ID 🏷️

🌈 DESCRIPTION 🌈

So here's the whole vibe: if the DVSEC has Vendor ID vendor and DVSEC ID dvsec, you get the capability offset in config space back. slay, we found it. Otherwise you get 0 β€” and like, that's it. That's the entire function. Short queen. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/pci/pci.c β€” and bestie, she has a huge friend group, buckle up 🫢:


and that's the whole page bestie, tysm for reading πŸ§šπŸ’œ she lives in ./drivers/pci, dated October 2026, and you can find her under the name pci_find_dvsec_capability(9) in the Kernel API Manual. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from