'\" t .\" Title: pci_find_capability .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PCI_FIND_CAPABILITY" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" pci_find_capability \- query for devices\*(Aq capabilities .SH "SYNOPSIS" .HP \w'int\ pci_find_capability('u .BI "int pci_find_capability(struct\ pci_dev\ *\ " "dev" ", int\ " "cap" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 PCI device to query .RE .PP \fIcap\fR .RS 4 capability code .RE .SH "DESCRIPTION" .PP Tell if a device supports a given PCI capability\&. Returns the address of the requested capability structure within the device\*(Aqs PCI configuration space or 0 in case the device does not support it\&. Possible values for \fIcap\fR: .PP \fBPCI_CAP_ID_PM\fR Power Management \fBPCI_CAP_ID_AGP\fR Accelerated Graphics Port \fBPCI_CAP_ID_VPD\fR Vital Product Data \fBPCI_CAP_ID_SLOTID\fR Slot Identification \fBPCI_CAP_ID_MSI\fR Message Signalled Interrupts \fBPCI_CAP_ID_CHSWP\fR CompactPCI HotSwap \fBPCI_CAP_ID_PCIX\fR PCI\-X \fBPCI_CAP_ID_EXP\fR PCI Express .SH "COPYRIGHT" .br