* Who calls my init_module when my driver is not a module?
@ 2006-03-19 20:41 Antonio Di Bacco
2006-03-19 23:47 ` Sylvain Munaut
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Di Bacco @ 2006-03-19 20:41 UTC (permalink / raw)
To: linuxppc-embedded
I wrote an SPI driver, I decided to link it against the kernel but I'm
wondering where my init_module will be called.
Anyone knows?
Bye,
Antonio.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Who calls my init_module when my driver is not a module?
2006-03-19 20:41 Who calls my init_module when my driver is not a module? Antonio Di Bacco
@ 2006-03-19 23:47 ` Sylvain Munaut
0 siblings, 0 replies; 2+ messages in thread
From: Sylvain Munaut @ 2006-03-19 23:47 UTC (permalink / raw)
To: Antonio Di Bacco; +Cc: linuxppc-embedded
Antonio Di Bacco wrote:
> I wrote an SPI driver, I decided to link it against the kernel but I'm
> wondering where my init_module will be called.
>
> Anyone knows?
>
> Bye,
> Antonio
>From include/linux/init.h :
/**
* module_init() - driver initialization entry point
* @x: function to be run at kernel boot time or module insertion
*
* module_init() will either be called during do_initcalls (if
* builtin) or at module insertion time (if a module). There can only
* be one per module.
*/
#define module_init(x) __initcall(x);
Sylvain
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-19 23:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-19 20:41 Who calls my init_module when my driver is not a module? Antonio Di Bacco
2006-03-19 23:47 ` Sylvain Munaut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).