summaryrefslogtreecommitdiff
path: root/hang/hang1.c
diff options
context:
space:
mode:
Diffstat (limited to 'hang/hang1.c')
-rw-r--r--hang/hang1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/hang/hang1.c b/hang/hang1.c
new file mode 100644
index 0000000..b963281
--- /dev/null
+++ b/hang/hang1.c
@@ -0,0 +1,16 @@
+#include <linux/kernel.h>
+#include <linux/module.h>
+
+
+static int __init hang_init(void)
+{
+ while(1);
+ return 0;
+}
+
+static void __exit hang_exit(void)
+{
+}
+
+module_init(hang_init);
+module_exit(hang_exit);