1PCI_DEV_PRESENT(9) Hardware Interfaces PCI_DEV_PRESENT(9)
2
3
4
6 pci_dev_present - Returns 1 if device matching the device list is
7 present, 0 if not.
8
10 int pci_dev_present(const struct pci_device_id * ids);
11
13 ids
14 A pointer to a null terminated list of struct pci_device_id
15 structures that describe the type of PCI device the caller is
16 trying to find.
17
19 You do not have a reference to any device that might be found by this
20 function, so if that device is removed from the system right after this
21 function is finished, the value will be stale. Use this function to
22 find devices that are usually built into a system, or for a general
23 hint as to if another device happens to be present at this specific
24 moment in time.
25
27Kernel Hackers Manual 2.6. June 2019 PCI_DEV_PRESENT(9)