From: Sumya Hoque <sumyahoque2012@gmail.com>
To: skhan@linuxfoundation.org
Cc: linux-kernel-mentees@lists.linuxfoundation,
Sumya Hoque <sumyahoque2012@gmail.com>,
linux-kernel-mentees@lists.linuxfoundation.org
Subject: [PATCH] Added Panic to Hello Module
Date: Wed, 12 Feb 2025 21:34:46 +0000 [thread overview]
Message-ID: <20250212213446.5039-1-sumyahoque2012@gmail.com> (raw)
[ 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
reply other threads:[~2025-02-12 21:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250212213446.5039-1-sumyahoque2012@gmail.com \
--to=sumyahoque2012@gmail.com \
--cc=linux-kernel-mentees@lists.linuxfoundation \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox