All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] Documentation:fixed a small typo in Documentation/hid/hiddev.rst:11
@ 2025-04-19 14:59 Tinu Kuriakose
  0 siblings, 0 replies; 2+ messages in thread
From: Tinu Kuriakose @ 2025-04-19 14:59 UTC (permalink / raw)
  To: skhan; +Cc: linux-kernel

From c7594b07c54617f552d39617714b042e5b7a99b8 Mon Sep 17 00:00:00 2001
From: tinukcheriya <tinuk11c@gmail.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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-22 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAC=vsvAv88P7Z_as3k0ceRNCy5Jq-1Y8ge=XPaRXcT4uzi1XBA@mail.gmail.com>
2025-04-22 17:22 ` [patch] Documentation:fixed a small typo in Documentation/hid/hiddev.rst:11 Shuah Khan
2025-04-19 14:59 Tinu Kuriakose

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.