What is the difference between module_init and init_module in a Linux kernel module?

前端 未结 3 1967
被撕碎了的回忆
被撕碎了的回忆 2020-12-28 20:56

I have been trying to port few linux drivers and realized that there is substantial difference between kernel version 2.4 and 2.6 of linux.

In the 2.4 version of ker

3条回答
  •  清酒与你
    2020-12-28 21:44

    What is the advantage of [module_init] in Kernel 2.6

    module_init also exited in 2.4, mind you.

    It adds the necessary boilerplate to initialize the module and run the entry function when the module file is compiled into the kernel rather than as a module.

提交回复
热议问题