pci_match_device(9)
π 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 ofpci_device_idfor 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:
do_pci_add_dynid(9)pci_add_dynid(9)do_pci_match_id(9)pci_match_id(9)new_id_store(9)remove_id_store(9)__pci_device_probe(9)pci_restore_standard_config(9)__pci_register_driver(9)pci_unregister_driver(9)pci_dev_driver(9)pci_bus_match(9)pci_dev_get(9)pci_dev_put(9)pci_uevent_ers(9)pci_dma_configure(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms