Regarding module init function

Dave Hylands dhylands at gmail.com
Tue Jan 8 09:33:07 EST 2013


Hi Rahul,


On Tue, Jan 8, 2013 at 2:50 PM, Rahul Bedarkar <rpal143 at gmail.com> wrote:
>
> Thanks Dave!
>
> I just verified that from System.map. Between __early_initcall_end and
__initcall_end, there is list of init calls with levels from 0-7. What is
significance of these levels.

The levels basically just control the order that the initcalls are made.
Basically, all level 0 functions are called befor level 1 functions, etc.

The meaning behind the levels can be discerned from the macros in init.h
http://lxr.linux.no/#linux+v3.7.1/include/linux/init.h#L207

There is also some docs here:
http://lxr.linux.no/#linux+v3.7.1/Documentation/DocBook/kernel-hacking.tmpl#L736

Dave Hylands
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130108/cacb7960/attachment.html 


More information about the Kernelnewbies mailing list