public inbox for linux-kernel-mentees@lists.linux-foundation.org
 help / color / mirror / Atom feed
* [PATCH] Added Panic to Hello Module
@ 2025-02-12 21:34 Sumya Hoque
  0 siblings, 0 replies; only message in thread
From: Sumya Hoque @ 2025-02-12 21:34 UTC (permalink / raw)
  To: skhan; +Cc: linux-kernel-mentees, Sumya Hoque, linux-kernel-mentees

[  333.971507] ---[ end Kernel panic - not syncing: 6Nooooooo!!!!! the module is Panincking ]--- 

Signed-off-by: Sumya Hoque <sumyahoque2012@gmail.com>
---
 linux_custom_modules/hello.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/linux_custom_modules/hello.c b/linux_custom_modules/hello.c
index b60c7b5f6ee9..5a5b7a3dbd54 100644
--- a/linux_custom_modules/hello.c
+++ b/linux_custom_modules/hello.c
@@ -1,11 +1,13 @@
 #include <linux/module.h>
 #include <linux/printk.h>
 #include <linux/kernel.h>
+#include <linux/panic.h>
 char *my_name = "World";
 module_param(my_name, charp, 0000);
 int hello(void)
 {
 	printk(KERN_INFO "Loading module... Hello %s\n", my_name);
+	panic(KERN_INFO "Nooooooo!!!!! the module is Panincking\n");
 	return 0;
 }
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-12 21:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 21:34 [PATCH] Added Panic to Hello Module Sumya Hoque

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox