Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added test linux kernel module
Jack Lange [Wed, 5 May 2010 22:37:59 +0000 (17:37 -0500)]
symmods/linux/test/Makefile [new file with mode: 0644]
symmods/linux/test/test.c [new file with mode: 0644]

diff --git a/symmods/linux/test/Makefile b/symmods/linux/test/Makefile
new file mode 100644 (file)
index 0000000..5f2e24e
--- /dev/null
@@ -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 (file)
index 0000000..7317600
--- /dev/null
@@ -0,0 +1,18 @@
+/* Hello world test module from LDD vol 3 */
+
+#include <linux/init.h>
+#include <linux/module.h>
+
+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);