Re: [PATCH] disable builtin modules

From: Magnus Damm
Date: Sun Mar 20 2005 - 05:55:19 EST


On Sun, 20 Mar 2005 10:51:41 +0100 (MET), Jan Engelhardt
<jengelh@xxxxxxxxxxxxxxx> wrote:
>
> >This patch makes it possible to disable built in code from the kernel
> >command line. The patch is rather simple - it extends the compiled-in case
> >of module_init() to include __setup() with a name based on KBUILD_MODNAME.
>
> What if there is already an option like the modname? I do not know of any
> code that currently does so, but you never know.
>
> Are acpi= and apm= already what your patch wants to extend to other modules?
> If not, there's conflict.

There is a conflict. Thanks for pointing that out.

Both the obsolete __setup() parameter code and the module parameter
code in kernel/params.c are limited to a single matching parameter.
The first matching parameter will be used, and non-early obsoleted
parameters are overridden by module parameter code. If I understand
the code correctly that is. =)

Maybe it is possible to (mis)use early_param instead of __setup and
let these parameters become "high priority" parameters that only are
parsed by do_early_param()...?

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