'\" t .\" Title: pci_reset_slot .\" 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_RESET_SLOT" "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_reset_slot \- reset a PCI slot .SH "SYNOPSIS" .HP \w'int\ pci_reset_slot('u .BI "int pci_reset_slot(struct\ pci_slot\ *\ " "slot" ");" .SH "ARGUMENTS" .PP \fIslot\fR .RS 4 PCI slot to reset .RE .SH "DESCRIPTION" .PP A PCI bus may host multiple slots, each slot may support a reset mechanism independent of other slots\&. For instance, some slots may support slot power control\&. In the case of a 1:1 bus to slot architecture, this function may wrap the bus reset to avoid spurious slot related events such as hotplug\&. Generally a slot reset should be attempted before a bus reset\&. All of the function of the slot and any subordinate buses behind the slot are reset through this function\&. PCI config space of all devices in the slot and behind the slot is saved before and restored after reset\&. .PP Return 0 on success, non\-zero on error\&. .SH "COPYRIGHT" .br