PCI: expose function reset capability in sysfs
Some devices allow an individual function to be reset without affecting other functions in the same device: that's what pci_reset_function does. For devices that have this support, expose reset attribite in sysfs. This is useful e.g. for virtualization, where a qemu userspace process wants to reset the device when the guest is reset, to emulate machine reboot as closely as possible. Acked-by:Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org>
Showing
- Documentation/ABI/testing/sysfs-bus-pci 10 additions, 0 deletionsDocumentation/ABI/testing/sysfs-bus-pci
- drivers/pci/pci-sysfs.c 37 additions, 0 deletionsdrivers/pci/pci-sysfs.c
- drivers/pci/pci.c 16 additions, 0 deletionsdrivers/pci/pci.c
- drivers/pci/pci.h 1 addition, 0 deletionsdrivers/pci/pci.h
- include/linux/pci.h 1 addition, 0 deletionsinclude/linux/pci.h
Loading
Please register or sign in to comment