Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pci_get_subsys(9) [centos man page]

PCI_GET_SUBSYS(9)						Hardware Interfaces						 PCI_GET_SUBSYS(9)

NAME
pci_get_subsys - begin or continue searching for a PCI device by vendor/subvendor/device/subdevice id SYNOPSIS
struct pci_dev * pci_get_subsys(unsigned int vendor, unsigned int device, unsigned int ss_vendor, unsigned int ss_device, struct pci_dev * from); ARGUMENTS
vendor PCI vendor id to match, or PCI_ANY_ID to match all vendor ids device PCI device id to match, or PCI_ANY_ID to match all device ids ss_vendor PCI subsystem vendor id to match, or PCI_ANY_ID to match all vendor ids ss_device PCI subsystem device id to match, or PCI_ANY_ID to match all device ids from Previous PCI device found in search, or NULL for new search. DESCRIPTION
Iterates through the list of known PCI devices. If a PCI device is found with a matching vendor, device, ss_vendor and ss_device, a pointer to its device structure is returned, and the reference count to the device is incremented. Otherwise, NULL is returned. A new search is initiated by passing NULL as the from argument. Otherwise if from is not NULL, searches continue from next device on the global list. The reference count for from is always decremented if it is not NULL. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 PCI_GET_SUBSYS(9)

Check Out this Related Man Page

getconfig(1)						      General Commands Manual						      getconfig(1)

NAME
getconfig - get configuration information for the XFree86 server SYNOPSIS
getconfig [option ...] DESCRIPTION
getconfig is a programmatic interface that is used by the XFree86 server to get configuration information about video hardware when operat- ing without an XF86Config file. This implementation of getconfig is written in perl. It processes a prioritized and ordered list of rules supplied internally and from meta-configuration files. The rules are in the form of perl expressions. getconfig writes to standard output the XF86Config-style config- uration data specified by the last highest priority rule that evaluates to true. Information about the format of the meta-configuration files can be found in the getconfig(5) manual page. OPTIONS
-I search-path Specify the search path to use for meta-config files. search-path is a comma-separated list of directories to search. Each direc- tory in the search path is searched for files with a .cfg suffix. Each such file is opened and checked for a valid signature string. Rules are read from files with a valid signature string and appended to the list of rules to evaluate. If no search path is specified, only the internally supplied configuration rules will be used. -D Enable debugging output. -V Print out the version information and exit. -X XFree86-version Specify the XFree86 version in numeric (integer) form. -b subsys-id Specify the PCI subsystem ID of the video device. -c class Specify the PCI class of the video device. -d device-id Specify the PCI device ID of the video device. -r revision Specify the PCI revision of the video device. -s subsysvendor-id Specify the PCI subsystem vendor ID of the video device. -v vendor-id Specify the PCI vendor ID of the video device. -S sbus-path Specify the SBUS path of the video device. FILES
.cfg files located in the search path. The search path typically specified by the XFree86 server is: /etc/X11 /usr/X11R6/etc/X11 <modulepath> /usr/X11R6/lib/X11/getconfig where <modulepath> is the XFree86 server's module search path. SEE ALSO
getconfig(5), XFree86(1), XF86Config(5). AUTHORS
The XFree86 automatic configuration support and the getconfig interface was written by David H. Dawes, with the support of X-Oz Technolo- gies. XFree86 Version 4.7.0 getconfig(1)
Man Page