'\" t .\" Title: pci_bus_find_capability .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "PCI_BUS_FIND_CAPABIL" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "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_bus_find_capability \- query for devices\*(Aq capabilities .SH "SYNOPSIS" .HP \w'int\ pci_bus_find_capability('u .BI "int pci_bus_find_capability(struct\ pci_bus\ *\ " "bus" ", unsigned\ int\ " "devfn" ", int\ " "cap" ");" .SH "ARGUMENTS" .PP \fIbus\fR .RS 4 the PCI bus to query .RE .PP \fIdevfn\fR .RS 4 PCI device to query .RE .PP \fIcap\fR .RS 4 capability code .RE .SH "DESCRIPTION" .PP Like \fBpci_find_capability\fR but works for pci devices that do not have a pci_dev structure set up yet\&. .PP 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\&. .SH "COPYRIGHT" .br