1PCI_GET_DEVICE(9) Hardware Interfaces PCI_GET_DEVICE(9)
2
3
4
6 pci_get_device - begin or continue searching for a PCI device by
7 vendor/device id
8
10 struct pci_dev * pci_get_device(unsigned int vendor,
11 unsigned int device,
12 struct pci_dev * from);
13
15 vendor
16 PCI vendor id to match, or PCI_ANY_ID to match all vendor ids
17
18 device
19 PCI device id to match, or PCI_ANY_ID to match all device ids
20
21 from
22 Previous PCI device found in search, or NULL for new search.
23
25 Iterates through the list of known PCI devices. If a PCI device is
26 found with a matching vendor and device, the reference count to the
27 device is incremented and a pointer to its device structure is
28 returned. Otherwise, NULL is returned. A new search is initiated by
29 passing NULL as the from argument. Otherwise if from is not NULL,
30 searches continue from next device on the global list. The reference
31 count for from is always decremented if it is not NULL.
32
34Kernel Hackers Manual 3.10 June 2019 PCI_GET_DEVICE(9)