<div dir="ltr">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 removing it. <div>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 ?</div>
<div><br></div><div>Thanks,</div><div>Rahul <div><br><div class="gmail_quote">On Fri, Jan 4, 2013 at 6:52 PM, Tobias Boege <span dir="ltr"><<a href="mailto:tobias@gambas-buch.de" target="_blank">tobias@gambas-buch.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, 04 Jan 2013, Rahul Bedarkar wrote:<br>
> Hi,<br>
><br>
> This may be stupid question.<br>
><br>
> When we compile external module and insert it, it's init function is called<br>
> and when we remove it, it's exit function gets called.<br>
><br>
> What happens in case of built-in modules? When it's init and exit is<br>
> called? May be take example of one of auxdriver.<br>
><br>
<br>
</div></div>You can find relevant information in LDD3, pp. 31 ff.. Basically, there is<br>
no difference in the use of the init function (it's called at kernel<br>
startup, I suppose) but exit is simply discarded in this case, because if<br>
your module is built-in, it could never be removed.<br>
<br>
Regards,<br>
Tobi<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br></div></div></div>