percolating ERESTARTSYS beyond PCI subsystem

Milton Krutt milton at krutt.org
Sat Apr 18 07:40:57 EDT 2015


Hi. The scenario is a PCI driver on a kernel 3.19.2: 

is it possible, in case pending_signal(current) is true, to return -ERESTARTSYS
to insmod process, in order to get it restart (as expectable)?

After some attempts (with pending_signal(current) being true), it seems that -ERESTARTSYS
is caught by the "pci layer" that complains saying something like "probing failed ..
unexpectedly returns -512" and nothing is restarted as expected.

Does insmod disables it explicitly? If so, how to get a similar "restart-behaviour"?

Thanks



More information about the Kernelnewbies mailing list