2009年11月24日 星期二

Linux CONFIG_XXX definition in C code

include/linux/autoconf.h

config with 'y' would be defined by
#define CONFIG_XXX 1

config with 'm' would be defined.
#define CONFIG_XXX_MODULE 1

If you are going to use the config macro in C code, be careful with config that could be build as module.

沒有留言: