'\" t .\" Title: lookup_resource .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "LOOKUP_RESOURCE" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "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" lookup_resource \- find an existing resource by a resource start address .SH "SYNOPSIS" .HP \w'struct\ resource\ *\ lookup_resource('u .BI "struct resource * lookup_resource(struct\ resource\ *\ " "root" ", resource_size_t\ " "start" ");" .SH "ARGUMENTS" .PP \fIstruct resource * root\fR .RS 4 root resource descriptor .RE .PP \fIresource_size_t start\fR .RS 4 resource start address .RE .SH "DESCRIPTION" .PP Returns a pointer to the resource if found, NULL otherwise .SH "COPYRIGHT" .br