linux - printk works eventhough kernel.h is not included -


i writing simple hello world module , found prink works eventhough kernel.h not included. program

#include<linux/module.h> int hello_init(void) {     printk(kern_alert "hello world\n");     return 0; }  void hello_exit(void) {     printk(kern_alert "good bye\n"); }  module_init(hello_init); module_exit(hello_exit); 

found definitions in kern_levels.h


Comments

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

database - one php page with different contents and urls -