'\" t .\" Title: request_firmware .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "REQUEST_FIRMWARE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * 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" request_firmware \- send firmware request and wait for it .SH "SYNOPSIS" .HP \w'int\ request_firmware('u .BI "int request_firmware(const\ struct\ firmware\ **\ " "firmware_p" ", const\ char\ *\ " "name" ", struct\ device\ *\ " "device" ");" .SH "ARGUMENTS" .PP \fIfirmware_p\fR .RS 4 pointer to firmware image .RE .PP \fIname\fR .RS 4 name of firmware file .RE .PP \fIdevice\fR .RS 4 device for which firmware is being loaded .RE .SH "DESCRIPTION" .PP \fIfirmware_p\fR will be used to return a firmware image by the name of \fIname\fR for device \fIdevice\fR\&. .PP Should be called from user context where sleeping is allowed\&. .PP \fIname\fR will be used as \fB$FIRMWARE\fR in the uevent environment and should be distinctive enough not to be confused with any other firmware image for this or any other device\&. .PP Caller must hold the reference count of \fIdevice\fR\&. .PP The function can be called safely inside device\*(Aqs suspend and resume callback\&. .SH "COPYRIGHT" .br