[Lkw] [PATCH] nvme-cmb: add msg when loading/removing kernel module
sofia-am
sofia.amallo at mi.unc.edu.ar
Thu Sep 14 17:49:02 EDT 2023
It screams hi and goodbye, he's really friendly.
Signed-off-by: Sofia Amallo sofia.amallo at mi.unc.edu.ar
---
drivers/block/nvme-cmb.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/drivers/block/nvme-cmb.c b/drivers/block/nvme-cmb.c
index 390f20f82..12a538004 100644
--- a/drivers/block/nvme-cmb.c
+++ b/drivers/block/nvme-cmb.c
@@ -1,4 +1,19 @@
#include <linux/module.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
MODULE_LICENSE("GPL");
+static int __init nvme_cmb_init(void)
+{
+ pr_info("holaaa!!! :) \n");
+ return 0;
+}
+
+static void __exit nvme_cmb_exit(void)
+{
+ pr_info("chaaau :'(\n");
+}
+
+module_init(nvme_cmb_init);
+module_exit(nvme_cmb_exit);
--
2.39.2
More information about the LKW
mailing list