pci_match_one_id(9)
π 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 π:
PCI_FIND_NEXT_CAP(9)PCI_FIND_NEXT_EXT_CAP(9)pci_bar_index_is_valid(9)pci_id_from_device(9)pci_resource_num(9)pci_dev_set_io_state(9)struct aer_err_info(9)
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
- 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