pci_match_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ pci_match_device(9) πŸŽ€

okay so this page is from the Kernel API Manual, and it's all about pci_match_device(9) β€” literally the β€œare you my driver's person?” check for PCI devices. bestie, it's giving matchmaking but make it kernel. πŸ’…


✨ NAME ✨

pci_match_device β€” see if a device matches a driver's list of IDs πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

const struct pci_device_id * pci_match_device (struct pci_driver *drv ,
struct pci_dev *dev , struct pci_device_id *id_copy );

πŸ’– ARGUMENTS πŸ’–

  • drv β€” the PCI driver to match against πŸš—
  • dev β€” the PCI device structure to match against 🧸
  • id_copy β€” place to store a copy of pci_device_id for dynamic ID πŸ“

🌈 DESCRIPTION 🌈

A driver uses this to check whether a PCI device is in its list of supported devices or in the dynids list β€” which may have been augmented via the sysfs "new_id" file. It returns the matching pci_device_id structure, or NULL if there is no match. no cap: match found = the matching struct; no match = NULL, and that's the whole vibe. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/pci/pci-driver.c β€” and the whole linked-up crew is:


kisses bestie πŸ’‹ β€” this page lives under ./drivers/pci, dated October 2026, in the Kernel API Manual, and the manual name is pci_match_device(9). slay. 🫢✨

πŸ“¦ where this page comes from