Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pci_get_domain_bus_and_slot(9) [centos man page]

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 3.10 June 2014 PCI_GET_DOMAIN_BUS_A(9)

Check Out this Related Man Page

PCITWEAK(1)						      General Commands Manual						       PCITWEAK(1)

NAME
pcitweak - read/write PCI config space SYNOPSIS
pcitweak -l pcitweak -r PCI-ID [-b|-h] offset pcitweak -w PCI-ID [-b|-h] offset value DESCRIPTION
Pcitweak is a utility that can be used to examine or change registers in the PCI configuration space. On most platfoms pcitweak can only be run by the root user. OPTIONS
-l Probe the PCI buses and print a line for each detected device. Each line contains the bus location (bus:device:function), chip vendor/device, card (subsystem) vendor/card, revision, class and header type. All values printed are in hexadecimal. -r PCI-ID Read the PCI configuration space register at offset for the PCI device at bus location PCI-ID. PCI-ID should be given in the form bus:device:function, with each value in hexadecimal. By default, a 32-bit register is read. -w PCI-ID Write value to the PCI configuration space register at offset for the PCI device at bus location PCI-ID. PCI-ID should be given in the form bus:device:function, with each value in hexadecimal. By default, a 32-bit register is written. -b Read or write an 8-bit value (byte). -h Read or write a 16-bit value (halfword). SEE ALSO
scanpci(1) AUTHORS
David Dawes (dawes@xfree86.org). XFree86 Version Version 4.3.0 PCITWEAK(1)
Man Page