.TH "pci_find_device" 9 "pci_find_device" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME pci_find_device \- begin or continue searching for a PCI device by vendor/device id .SH SYNOPSIS .B "struct pci_dev *" pci_find_device .BI "(unsigned int " vendor "," .BI "unsigned int " device "," .BI "const struct pci_dev *" from ");" .SH ARGUMENTS .IP "vendor" 12 PCI vendor id to match, or PCI_ANY_ID to match all vendor ids .IP "device" 12 PCI device id to match, or PCI_ANY_ID to match all device ids .IP "from" 12 Previous PCI device found in search, or NULL for new search. .SH "DESCRIPTION" Iterates through the list of known PCI devices. If a PCI device is found with a matching \fIvendor\fP and \fIdevice\fP, a pointer to its device structure is returned. Otherwise, NULL is returned. A new search is initiated by passing NULL to the \fIfrom\fP argument. Otherwise if \fIfrom\fP is not NULL, searches continue from next device on the global list.