Hi Rahul,


On Tue, Jan 8, 2013 at 2:50 PM, Rahul Bedarkar <rpal143@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