Re: [RFC] put symbolic links between drivers and modules in thesysfs tree

From: James Bottomley
Date: Sat Sep 25 2004 - 08:21:07 EST


On Sat, 2004-09-25 at 04:21, Arjan van de Ven wrote:
> btw does that mkinitrd already use
> readlink /sys/block/sda/device/block/device
>
> (which gives
> ../../devices/pci0000:00/0000:00:06.0/0000:03:0b.0/host1/1:0:0:0
> as output)
>
> the pci path that gives can easily be matched to modules.pcimap to find
> the information in case of a PCI device, so at least the table in your
> mkinitrd doesn't need to contain PCI devices.....

So tell me what happens when my root device is on MCA (which is one of
my machines) or is a parisc internal device (which is another)...

Putting the modules link in relieves mkinitrd from having to understand
anything about the bus types.

James


-
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/