是否有通用的方法从命令行重置Linux中的PCI设备?也就是说,使PCI总线发出复位命令.
解决方法:
根据http://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-pci,如果支持,您可以重置设备的各个功能:
What: /sys/bus/pci/devices/.../reset
Description:
Some devices allow an individual function to be reset
without affecting other functions in the same device.
For devices that have this support, a file named reset
will be present in sysfs. Writing 1 to this file
will perform reset.