1PCI_GET_SUBSYS(9)             Hardware Interfaces            PCI_GET_SUBSYS(9)
2
3
4

NAME

6       pci_get_subsys - begin or continue searching for a PCI device by
7       vendor/subvendor/device/subdevice id
8

SYNOPSIS

10       struct pci_dev * pci_get_subsys(unsigned int vendor,
11                                       unsigned int device,
12                                       unsigned int ss_vendor,
13                                       unsigned int ss_device,
14                                       struct pci_dev * from);
15

ARGUMENTS

17       vendor
18           PCI vendor id to match, or PCI_ANY_ID to match all vendor ids
19
20       device
21           PCI device id to match, or PCI_ANY_ID to match all device ids
22
23       ss_vendor
24           PCI subsystem vendor id to match, or PCI_ANY_ID to match all vendor
25           ids
26
27       ss_device
28           PCI subsystem device id to match, or PCI_ANY_ID to match all device
29           ids
30
31       from
32           Previous PCI device found in search, or NULL for new search.
33

DESCRIPTION

35       Iterates through the list of known PCI devices. If a PCI device is
36       found with a matching vendor, device, ss_vendor and ss_device, a
37       pointer to its device structure is returned, and the reference count to
38       the device is incremented. Otherwise, NULL is returned. A new search is
39       initiated by passing NULL as the from argument. Otherwise if from is
40       not NULL, searches continue from next device on the global list. The
41       reference count for from is always decremented if it is not NULL.
42
44Kernel Hackers Manual 2.6.       November 2011               PCI_GET_SUBSYS(9)
Impressum