Re: software reset

Andi Kleen
2003-04-30T23:03:43Z

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