Re: [RFC] Flat /lib/modules/`uname -r`

From: Keith Owens (kaos@ocs.com.au)
Date: Fri Apr 21 2000 - 22:22:51 EST


On Sat, 22 Apr 2000 13:05:16 +1000,
Andrew Morton <andrewm@uow.edu.au> wrote:
>That being said, the modutils toolchain should able to cope with modules
>which are symlinked to other modules for back-compatibility reasons.

Using 'alias' in modules.conf would be a better idea.

>The PCMCIA tools package appears to have knowledge of the directories
>under /lib/modules/.../, so Dave will be impacted..

No, I deliberately kept the old directory structure for third party
modules. I just want to flatten the kernel modules because that is
where the problem is and multiple directories gives no real advantage.
So we have /lib/modules/`uname -r`/{kernel,pcmcia,vmware,...}.

>I believe you're working on a tool to troll the modules, pulling out PCI
>device IDs? I didn't see that feature mentioned in your most recent
>announcement.

Will be in modutils 2.3.12, I wanted to get the debugging support in
2.3.11 out for testing first.

>Have you given any thought to extending this to create
>the full association between:
>
> Human readable device name(s)
> PCI identifiers
> module name

PCI identifiers to module name will be there, from struct
pci_device_id. That struct does not contain any human readable names.

Modules can include MODULE_SUPPORTED_DEVICE("text"), I will pull that
out as well. But supported device is pure text, it has no meaning to
*anything* except a human so don't even think of parsing it. Not much
uses MODULE_SUPPORTED_DEVICE, list from 2.3.99-pre6-5 below . Having
the text the same as the module name does not add any useful data.

./arch/mips/kernel/fpe.c:MODULE_SUPPORTED_DEVICE("MIPS FPU");
./drivers/atm/fore200e.c:MODULE_SUPPORTED_DEVICE("PCA-200E, SBA-200E");
./drivers/block/floppy.c:MODULE_SUPPORTED_DEVICE("fd");
./drivers/char/ftape/zftape/zftape-init.c:MODULE_SUPPORTED_DEVICE("char-major-27");
./drivers/char/joystick/joystick.c:MODULE_SUPPORTED_DEVICE("js");
./drivers/char/applicom.c:MODULE_SUPPORTED_DEVICE("ac");
./drivers/char/cpia.c:MODULE_SUPPORTED_DEVICE("video");
./drivers/ieee1394/aic5800.c:MODULE_SUPPORTED_DEVICE("aic5800");
./drivers/ieee1394/ohci1394.c:MODULE_SUPPORTED_DEVICE("ohci1394");
./drivers/ieee1394/pcilynx.c:MODULE_SUPPORTED_DEVICE("pcilynx");
./drivers/isdn/act2000/module.c:MODULE_SUPPORTED_DEVICE( "ISDN subsystem");
./drivers/isdn/eicon/eicon_mod.c:MODULE_SUPPORTED_DEVICE( "ISDN subsystem");
./drivers/net/hamradio/scc.c:MODULE_SUPPORTED_DEVICE("scc");
./drivers/parport/parport_amiga.c:MODULE_SUPPORTED_DEVICE("Amiga builtin Parallel Port");
./drivers/parport/parport_atari.c:MODULE_SUPPORTED_DEVICE("Atari builtin Parallel Port");
./drivers/parport/parport_mfc3.c:MODULE_SUPPORTED_DEVICE("Multiface 3 Parallel Port");
./drivers/parport/parport_sunbpp.c:MODULE_SUPPORTED_DEVICE("Sparc Bidirectional Parallel Port");
./drivers/scsi/tmscsim.c:MODULE_SUPPORTED_DEVICE("sd,sr,sg,st");
./drivers/usb/joydev.c:MODULE_SUPPORTED_DEVICE("input/js");

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



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:20 EST