Re: Exclusive access to hardware for test purpose
From: Greg KH
Date: Fri Oct 29 2004 - 16:08:16 EST
On Fri, Oct 29, 2004 at 03:05:59AM +0530, Mehulkumar J Patel wrote:
> Hi,
>
> Is anyone aware of kernel call which allows a test tool developer to have
> exclusive access to PCI adapter hardware. By exclusive access I mean both
> driver as well as kernel should not touch hardware.
You need to disconnect the device from any current driver that might be
bound to it. Then you need to bind to the device to make sure that no
one else binds to it.
> I have been using driver's remove call to simulate the situation as if
> adapter has been hot plugged out. And once my testing is done I call
> driver's probe
> call to put adapter back. But this seems to create a problem when somehow
> kernel calls driver's remove call.
What kind of problem happens? Any code you can point us at?
thanks,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/