suse man page for pci_get_domain_bus_and_slot

Query: pci_get_domain_bus_and_slot

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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
domain PCI domain/segment on which the PCI device resides. bus PCI bus on which desired PCI device resides devfn encodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices.
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
Kernel Hackers Manual 2.6. July 2010 PCI_GET_DOMAIN_BUS_A(9)
Related Man Pages
pci_create_slot(9) - centos
hwloc_get_hostbridge_by_pcibus(debian) - debian
pci_devinfo(3) - netbsd
pcidev_conf_read(3) - netbsd
pciback(4) - netbsd
Similar Topics in the Unix Linux Community
Cause PCIe error callbacks using AER injection