Results 1 to 2 of 2
Hi all,
I have a function with __init, but it is never called after booting-up. Anybody knows why?
How does linux manage the sequence of __init functions, since there are ...
- 06-04-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 4
__ init function doesn't get called
Hi all,
I have a function with __init, but it is never called after booting-up. Anybody knows why?
How does linux manage the sequence of __init functions, since there are many functions with __init ?
also, where in the bootup process those __init functions are caled?
Thanks!
- 06-28-2011 #2Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
__init doesn't mean that functions will be invoked "automatically"....people usually use macros something like core_initcall, arch_initcall,...etc with __init functions, and they have some execution sequence at bootup time. Those macros could be found at include/linux/init.h. And I think you could google on the internet to find out how __init functions are called in bootup process.


Reply With Quote
