Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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!

  2. #2
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •