pci_rescan_bus() doesn't rescan PCI bus in Linux
问题 I am trying to rescan PCI bus in my own kernel driver with the help of pci_rescan_bus() kernel function but I do not see it is functioning same. If I try to do same from user space by running following command, I see that rescanning happens: echo 1 > /sys/devices/pci0000:00/0000:00:14.1/rescan I am trying to re-initialize my ethernet ports which sit on PCI bus. Below is the code I am using for now: struct pci_dev *pci_eth_dev01, *pci_eth_dev02 = NULL; pci_eth_dev01 = pci_get_device(0x10ec,