Linux Kernel Initcall的实现

1.      How to define new initcall

a)        Built-in initcall

b)       Module initcall

2.      Howdoes the kernel call the initcall

a)        函数调用关系如下:

start_kernel() => rest_init() => kernel_init() => kernel_init_freeable()=> do_basic_setup() => do_initcalls()

b)       原理及过程

                        i.             代码时调用initcall系列宏

                      ii.             编译时,编译器将这些宏放入指定的section

                     iii.              

 

 




猜你喜欢

转载自blog.csdn.net/lcxhjg/article/details/80967095