table of contents
PCI_GET_DOMAIN_BUS_A(9) | Hardware Interfaces | PCI_GET_DOMAIN_BUS_A(9) |
NAME¶
pci_get_domain_bus_and_slot - locate PCI device for a given PCI domain (segment), bus, and slot
SYNOPSIS¶
struct pci_dev * pci_get_domain_bus_and_slot(int domain, unsigned int bus, unsigned int devfn);
ARGUMENTS¶
int domain
unsigned int bus
unsigned int devfn
DESCRIPTION¶
Given a PCI domain, bus, and slot/function number, the desired PCI device is located in the list of PCI devices. If the device is found, its reference count is increased and this function returns a pointer to its data structure. The caller must decrement the reference count by calling pci_dev_put. If no device is found, NULL is returned.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |