lkml.org 
[lkml]   [1999]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 2.3.18ac5
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.033 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site