'\" t .\" Title: pci_find_resource .\" 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_FIND_RESOURCE" "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_find_resource \- Return matching PCI device resource .SH "SYNOPSIS" .HP \w'struct\ resource\ *\ pci_find_resource('u .BI "struct resource * pci_find_resource(struct\ pci_dev\ *\ " "dev" ", struct\ resource\ *\ " "res" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 PCI device to query .RE .PP \fIres\fR .RS 4 Resource to look for .RE .SH "DESCRIPTION" .PP Goes over standard PCI resources (BARs) and checks if the given resource is partially or fully contained in any of them\&. In that case the matching resource is returned, \fBNULL\fR otherwise\&. .SH "COPYRIGHT" .br