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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -