Subject: Re: Calling a function in pciide() from user space?
To: Bruce Martin <brucem@cat.co.za>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 04/11/2001 08:35:15
On Wed, Apr 11, 2001 at 03:36:22PM +0200, Bruce Martin wrote:

 > Thanks, I didn't even know atactl() existed, so it was interesting to take a
 > look at it. However, it leaves me with the same problem: it needs a device
 > name (like /dev/wd0d), and so, although something like "atactl /dev/wd1d
 > detach" makes sense, something like "atactl /dev/wd1d reattach" does not
 > make sense, as wd1 does not exist after the detach. I need some way to call
 > in on the pciide level, or at least the wdc level, to say "detach drive x on
 > channel y", or "check your channels for new drives"...

Take a look at the scsictl(8) program -- it has a "scan" sub-command
to rescan the bus...

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>