From: Sylvain Munaut <tnt@246tNt•com>
To: Antonio Di Bacco <antonio.dibacco@aruba•it>
Cc: linuxppc-embedded@ozlabs•org
Subject: Re: Who calls my init_module when my driver is not a module?
Date: Mon, 20 Mar 2006 00:47:58 +0100 [thread overview]
Message-ID: <441DEDAE.4000204@246tNt.com> (raw)
In-Reply-To: <200603192141.52239.antonio.dibacco@aruba.it>
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
prev parent reply other threads:[~2006-03-19 23:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=441DEDAE.4000204@246tNt.com \
--to=tnt@246tnt$(echo .)com \
--cc=antonio.dibacco@aruba$(echo .)it \
--cc=linuxppc-embedded@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox