From linux-kernel Fri Sep 17 14:18:08 1999 From: Richard Guenther Date: Fri, 17 Sep 1999 14:18:08 +0000 To: linux-kernel Subject: Re: Linux 2.3.18ac5 X-MARC-Message: https://marc.info/?l=linux-kernel&m=93757841209393 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 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/