lkml.org 
[lkml]   [2006]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Rescan IDE interface when no IDE devices are present
On 7/25/06, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> On Sul, 2006-07-16 at 15:03 -0500, Daniel De Graaf wrote:
> > On 7/16/06, Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> > > If you have ide1, you have both hdc and hdd (slave of hdc) unles sit's
> > > not really IDE ...
> > >
> > > Ben.
> >
> > Yes, I have /dev/hdd, but no device is ever present there. I also have
> > /dev/sda for the SATA hard disk, but do not think it is useful for
> > HDIO_SCAN_HWIF or HWIO_UNREGISTER_HWIF ioctls.
>
> There isn't. Feel free to write a module to do it (see how the ioctl
> handles it and follow the same logic). Its at best a hack. libata is
> trying to add proper hotplug for ATA/SATA.
>
> Alan

I wrote a module to do the register/unregister through a /proc file.
It currently only works on ide1; the constants in scan_hw and unreg_hw
should be made to depend on the value written to the /proc if other
interfaces are needed. Available at
http://danieldegraaf.afraid.org/linux/ide_proc_register.c

Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-26 04:01    [W:1.187 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site