2 * hello-1.c - The simplest kernel module.
4 #include <linux/module.h> /* Needed by all modules */
5 #include <linux/kernel.h> /* Needed for KERN_INFO */
7 MODULE_DESCRIPTION("Simple HelloWorld LKM");
8 MODULE_AUTHOR("Thomas 'Harvie' Mudrunka <harvie@email.cz>");
9 MODULE_LICENSE("Dual BSD/GPL");
13 printk(KERN_INFO
"Hello world 1.\n");
17 void cleanup_module(void)
19 printk(KERN_INFO
"Goodbye world 1.\n");
This page took 1.211611 seconds and 4 git commands to generate.