1__PCI_RESET_FUNCTION(9) Hardware Interfaces __PCI_RESET_FUNCTION(9)
2
3
4
6 __pci_reset_function_locked - reset a PCI device function while holding
7 the dev mutex lock.
8
10 int __pci_reset_function_locked(struct pci_dev * dev);
11
13 dev
14 PCI device to reset
15
17 Some devices allow an individual function to be reset without affecting
18 other functions in the same device. The PCI device must be responsive
19 to PCI config space in order to use this function.
20
21 The device function is presumed to be unused and the caller is holding
22 the device mutex lock when this function is called. Resetting the
23 device will make the contents of PCI configuration space random, so any
24 caller of this must be prepared to reinitialise the device including
25 MSI, bus mastering, BARs, decoding IO and memory spaces, etc.
26
27 Returns 0 if the device function was successfully reset or negative if
28 the device doesn't support resetting a single function.
29
31Kernel Hackers Manual 3.10 June 2019 __PCI_RESET_FUNCTION(9)