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

前端 未结 3 1968
被撕碎了的回忆
被撕碎了的回忆 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:42

    One advantage is readability. cdrom_init() instantly tells you that it's the init() call for the cdrom driver.

提交回复
热议问题