pci_match_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_match_id(9) β€” like, the Kernel API Manual one, obvi

Okay bestie, so this is pci_match_id(9) from the Kernel API Manual and I need you to stay with me because it's a short one but it's got ✨lore✨ β€” mostly the lore being "don't use it." 🫢


✨ NAME ✨

pci_match_id β€” see if a PCI device matches a given pci_id table. That's it, that's the whole vibe check. πŸŽ€


🌸 SYNOPSIS 🌸

const struct pci_device_id * pci_match_id (const struct pci_device_id
*ids , struct pci_dev *dev );

Like, look at her. Two params. Very demure, very mindful. πŸ’œ


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ids β€” the array of PCI device ID structures we're gonna search inside. Basically the guest list. πŸ’…
  • dev β€” the PCI device structure we're matching against. The girl at the door checking names. πŸ”₯

⭐ DESCRIPTION ⭐

So a driver uses this to check whether a PCI device is in its list of supported devices. If it finds a match, it returns the matching pci_device_id structure β€” and if there's no match? NULL. That's it. No match, no entry, no slay. 😭

⚠️ Deprecated, bestie. Do not use this, because it will not catch any dynamic IDs that a driver might want to check for. Like, it literally can't see them. Not its fault, but also. Don't. 🚩

🌈 SEE ALSO 🌈

Kernel file ./drivers/pci/pci-driver.c β€” the whole friend group lives there:


✨ mwah ✨ okay that's the whole page! This one lives in ./drivers/pci, dated October 2026, and it's pci_match_id(9) all the way down. Go check on do_pci_match_id(9) if you want the non-deprecated energy, iykyk. πŸ’–πŸ¦‹πŸ§š

πŸ“¦ where this page comes from