--- Peter Jay Salzman <p@dirac.org> wrote: > i'm trying to understand (in linux/module.h): > > /* Indirect stringification. */ > #define __MODULE_STRING_1(x) #x > #define __MODULE_STRING(x) __MODULE_STRING_1(x) > > which is used alot in MODULE_PARM (in linux/module.h): > > MODULE_PARM(mac, "1-" __MODULE_STRING(NS_MAX_CARDS) "s"); > > > what is __MODULE_STRING() used for? in what sense does it perform > "stringification"? > Sorry I can't help you here. Prehaps someone with more experience will chip in. Looks to my simple eyes that it does nothing. Prehaps it's holding place for a real macro/function later...? > > also, i'm not understanding the 2nd argument of MODULE_PARM. i'd > be > happier with: > > MODULE_PARM(mac, "s"); > > there are two other items: "1-" and __MODULE_STRING(NS_MAX_CARDS). > they > belong to the 2nd argument, which identifies the type of the > command > line argument. i would've thought that would simply be "s" for a > string. what do the two other items do? > See http://www.xml.com/ldd/chapter/book/ch02.html#t6 for a nice discussion. Harmony, --Christine __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/