From: Jack Lange Date: Wed, 5 May 2010 22:37:59 +0000 (-0500) Subject: added test linux kernel module X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=91c30120782cf8ee2f7a7263e3f554f3ffa97b77 added test linux kernel module --- diff --git a/symmods/linux/test/Makefile b/symmods/linux/test/Makefile new file mode 100644 index 0000000..5f2e24e --- /dev/null +++ b/symmods/linux/test/Makefile @@ -0,0 +1 @@ +obj-m := test.o diff --git a/symmods/linux/test/test.c b/symmods/linux/test/test.c new file mode 100644 index 0000000..7317600 --- /dev/null +++ b/symmods/linux/test/test.c @@ -0,0 +1,18 @@ +/* Hello world test module from LDD vol 3 */ + +#include +#include + +MODULE_LICENSE("GPL"); + +static int test_init(void) { + printk(KERN_ALERT "Hello from a symbiotic module!!\n"); + return 0; +} + +static void test_exit(void) { + printk(KERN_ALERT "Symbiotic test module unloading\n"); +} + +module_init(test_init); +module_exit(test_exit);