[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAC=vsvCmQncx=vov_OM7WvyXaBt9N3pQnG6DNJxBBd0tkzi3Gw@mail.gmail.com>
Date: Sat, 19 Apr 2025 20:29:40 +0530
From: Tinu Kuriakose <tinuk11c@...il.com>
To: skhan@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org
Subject: [patch] Documentation:fixed a small typo in Documentation/hid/hiddev.rst:11
>From c7594b07c54617f552d39617714b042e5b7a99b8 Mon Sep 17 00:00:00 2001
From: tinukcheriya <tinuk11c@...il.com>
Date: Wed, 16 Apr 2025 01:28:28 +0530
Subject: [PATCH] Helloworld kernel module
---
Makefile | 7 +++++++
helloworld.c | 20 ++++++++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 Makefile
create mode 100644 helloworld.c
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0b7a8ac
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+obj-m +=helloworld.o
+
+all:
+ make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
+
+clean:
+ make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
diff --git a/helloworld.c b/helloworld.c
new file mode 100644
index 0000000..7bcc53b
--- /dev/null
+++ b/helloworld.c
@@ -0,0 +1,20 @@
+#include <linux/init.h>
+#include <linux/module.h>
+#include <linux/kernel.h>
+
+static int __init helloworldinit(void){
+ pr_info("helloworld kernel module\n");
+ return 0;
+}
+
+static void __exit helloworldexit(void){
+ pr_info("goodbye exiting\n");
+}
+
+module_init(helloworldinit);
+module_exit(helloworldexit);
+
+MODULE_LICENSE("MIT");
+MODULE_AUTHOR("TINU");
+MODULE_DESCRIPTION("a simple helloworld module");
+
--
2.25.1
Powered by blists - more mailing lists