Regarding module init function

Dave Hylands dhylands at gmail.com
Sat Jan 12 00:49:42 EST 2013


Hi Tobais,

On Thu, Jan 10, 2013 at 9:47 AM, Tobias Boege <tobias at gambas-buch.de> wrote:
> On Tue, 08 Jan 2013, anish kumar wrote:
> > On Tue, 2013-01-08 at 14:51 +0100, Tobias Boege wrote:
...snip...
> > > On Tue, 08 Jan 2013, Rahul Bedarkar wrote:
> > > It's, too, in the init.h. There are two definitions of module_init()
> > > depending on whether MODULE is declared or not. The first definition
is
> > How does the individual driver define this MODULE?I think some macro
> > magic works here.
>
> I suppose that this is done through the invocation of the preprocessor,
> using -DMODULE depending on whether the target is built-in or a module.

Exactly.

--
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130112/df760e60/attachment.html 


More information about the Kernelnewbies mailing list