1PCI_GET_CLASS(9) Hardware Interfaces PCI_GET_CLASS(9)
2
3
4
6 pci_get_class - begin or continue searching for a PCI device by class
7
9 struct pci_dev * pci_get_class(unsigned int class,
10 struct pci_dev * from);
11
13 class
14 search for a PCI device with this class designation
15
16 from
17 Previous PCI device found in search, or NULL for new search.
18
20 Iterates through the list of known PCI devices. If a PCI device is
21 found with a matching class, the reference count to the device is
22 incremented and a pointer to its device structure is returned.
23 Otherwise, NULL is returned. A new search is initiated by passing NULL
24 as the from argument. Otherwise if from is not NULL, searches continue
25 from next device on the global list. The reference count for from is
26 always decremented if it is not NULL.
27
29Kernel Hackers Manual 3.10 June 2019 PCI_GET_CLASS(9)