'\" t .\" Title: pci_reset_function .\" 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_RESET_FUNCTION" "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_reset_function \- quiesce and reset a PCI device function .SH "SYNOPSIS" .HP \w'int\ pci_reset_function('u .BI "int pci_reset_function(struct\ pci_dev\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 PCI device to reset .RE .SH "DESCRIPTION" .PP Some devices allow an individual function to be reset without affecting other functions in the same device\&. The PCI device must be responsive to PCI config space in order to use this function\&. .PP This function does not just reset the PCI portion of a device, but clears all the state associated with the device\&. This function differs from __pci_reset_function in that it saves and restores device state over the reset\&. .PP Returns 0 if the device function was successfully reset or negative if the device doesn\*(Aqt support resetting a single function\&. .SH "COPYRIGHT" .br