On 7/25/06, Alan Cox <[email protected]> wrote:
On Sul, 2006-07-16 at 15:03 -0500, Daniel De Graaf wrote:
> On 7/16/06, Benjamin Herrenschmidt <[email protected]> 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]