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
Post a Comment