pci_match_one_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so you're on the pci_match_one_id(9) page, and this is the Kernel API Manual, bestie 🫢. It tells you if a PCI device ID matches a needle PCI device ID. yes, we're matching IDs, and yes, it's iconic πŸ’….

🌸 SYNOPSIS 🌸

const struct pci_device_id * pci_match_one_id (const struct
pci_device_id *id , const struct pci_device_id *dev_id );

πŸŽ€ ARGUMENTS πŸŽ€

  • id β€” the single PCI device id structure you're matching against, aka the needle πŸͺ‘.
  • dev_id β€” the actual ID from the PCI device.

πŸ’… DESCRIPTION πŸ’…

the ID can be retrieved from the device using pci_id_from_device. that's the whole vibe, and it understood the assignment ✨.

πŸ”₯ RETURN πŸ”₯

you get the matching pci_device_id structure back, or NULL if there is no match. no match means NULL, no cap 😭.

πŸ¦‹ SEE ALSO πŸ¦‹

go peek at the Kernel file ./drivers/pci/pci.h and these icons too, bestie πŸ‘‘:


mwah πŸ’‹ this page's source path is ./drivers/pci, and its date is October 2026 β€” that's the cute little sign-off, and we are so done here πŸŽ€βœ¨

πŸ“¦ where this page comes from