I've got a PCIe board with a FPGA and my own kernel device driver.
After the FPGA has been loaded, I need to rescan the PCIe tree. I used the regular /sys/bus/pci/devices/xxx/remove + /sys/bus/pci/rescan to do that.
The access to these files must be done with root privileges and it could be a pain.
Is it possible to do the rescan from my kernel device driver ?
I tried to call pci_remove_bus () + pci_rescan_bus () in the open call but I've got a kernel panic.
Where can I find an example of pci_remove_bus () + pci_rescan_bus () use ?
Thanks,
Fred