All of lore.kernel.org
 help / color / mirror / Atom feed
* __KERNEL__ and __MODULE__
@ 2007-02-01  6:34 Daniel Rodrick
  2007-02-01 18:04 ` Simon Valiquette
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Rodrick @ 2007-02-01  6:34 UTC (permalink / raw)
  To: Linux Newbie, kernelnewbies

Hi,

I find a lot of code buried within #ifdefs for the following variables:

MODULE / __MODULE__
KERNEL / __KERNEL__

1) AFAIK, the MODULE / __MODULE__ is defined when my drievr is
selected to be compiled as a module, and the KERNEL / __KERNEL__ is
defined when is is selected to be built in the kernel image. Is this
right?

2) Why two variants ? KERNEL V/s __KERNEL__ and MODULE v/s __MODULE__?

3) Do I need to define these symbols in my Makefile myself or the
Kernel Makefiles / Kbuild does it for me?

Thanks,

Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-01 19:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-01  6:34 __KERNEL__ and __MODULE__ Daniel Rodrick
2007-02-01 18:04 ` Simon Valiquette
2007-02-01 19:28   ` Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.