From: Greg KH <greg@kroah.com>
To: Mehulkumar J Patel <mehul.patel@in.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Exclusive access to hardware for test purpose
Date: Fri, 29 Oct 2004 15:43:25 -0500 [thread overview]
Message-ID: <20041029204325.GA30638@kroah.com> (raw)
In-Reply-To: <OF2D431ED5.0E0040F4-ON65256F3B.0074805E-65256F3B.007703B3@in.ibm.com>
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
next parent reply other threads:[~2004-10-29 21:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OF2D431ED5.0E0040F4-ON65256F3B.0074805E-65256F3B.007703B3@in.ibm.com>
2004-10-29 20:43 ` Greg KH [this message]
[not found] ` <OF8948B2BB.F576944E-ON65256F3C.00784B09-65256F3C.007CC331@in.ibm.com>
2004-10-29 22:58 ` Exclusive access to hardware for test purpose Greg KH
2004-10-28 22:35 Mehul Patel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041029204325.GA30638@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mehul.patel@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox