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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -