#include<linux/init.h>
#include<linux/module.h>
MODULE_LICENSE("GPL");
static int hello_init(void)
{
printk(KERN_ALERT"Hello World");
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT"Bye bye ");
}
module_init(hello_init);
module_exit(hello_exit);
This is a simple program to print hello world to print in linux kernel log
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.