What is the difference between module_init and init_module in a Linux kernel module?
问题 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 kernel, the module programming was as below - #define MODULE #include <linux/module.h> #include <linux/kernel.h> int init_module(void) { printk(KERN_INFO "Hi \n"); return 0; } void cleanup_module(void) { printk(KERN_INFO "Bye \n"); } But, with the 2.6 version of kernel, the following has to be done for modules - #include <linux/init