On Wed, Apr 30, 2003 at 08:00:02PM -0300, Rafael Santos wrote:
> #define MODULE 1
> #define __KERNEL__ 1
>
> What are those for? What do they do?
Required for the kernel include files. __KERNEL__ says it's a kernel
compilation and MODULE says it's a module.
Normally they are declared in the kernel makefiles, but for custom
modules with a makefile I tend to write them as defines for convenience.
In 2.5 you'll also need KBUILD_MODNAME
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:37 EST