Re: Linux 2.3.18ac5

Richard Guenther (zxmpm11@student.uni-tuebingen.de)
Fri, 17 Sep 1999 16:18:08 +0200 (METDST)


On Fri, 17 Sep 1999, Mitchell Blank Jr wrote:

> Richard Guenther wrote:
> > It cannot be fixed up at runtime, as the __setup header needs
> > the _prefixed_ tag at compile time (look into linux/init.h),
> > so its not possible to have
> > #define MODULE_NAME(foo) \
> > char *modname=foo;
> >
> > and the parameter function reference modname and do some
> > strcat et al.
>
> Yes, but the code that physically parses the option strings could be aware
> of the ".c" when looking for a match.

I dont think linus likes this (the parsing is in init/main.c, if I
remember, just a loop which checks for the strings contained in
the .setup section) - its quite ugly, I think.

Richard.

--
Richard Guenther <richard.guenther@student.uni-tuebingen.de>
PGP: 2E829319 - 2F 83 FC 93 E9 E4 19 E2 93 7A 32 42 45 37 23 57
WWW: http://www.anatom.uni-tuebingen.de/~richi/

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