Regarding module init function
rpal143 at gmail.com
Tue Jan 8 03:40:43 EST 2013
I have gone through LDD3 page 31. But it didn't answer my question. It
is describing module init and exit when manually loading driver and
I want to know when one of auxdriver (selected in from menuconfig) is built
as built-in module. When and Who calls it's init function ?
On Fri, Jan 4, 2013 at 6:52 PM, Tobias Boege <tobias at gambas-buch.de> wrote:
> On Fri, 04 Jan 2013, Rahul Bedarkar wrote:
> > Hi,
> > This may be stupid question.
> > When we compile external module and insert it, it's init function is
> > and when we remove it, it's exit function gets called.
> > What happens in case of built-in modules? When it's init and exit is
> > called? May be take example of one of auxdriver.
> You can find relevant information in LDD3, pp. 31 ff.. Basically, there is
> no difference in the use of the init function (it's called at kernel
> startup, I suppose) but exit is simply discarded in this case, because if
> your module is built-in, it could never be removed.
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kernelnewbies