[Lkw] [PATCH] Mensajes por dmesg
Alejandro Gaut
alejandrogaut at gmail.com
Thu Sep 14 17:53:11 EDT 2023
---
drivers/block/nvme-cmb.c | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/drivers/block/nvme-cmb.c b/drivers/block/nvme-cmb.c
index f495dc448..4ad4d9337 100644
--- a/drivers/block/nvme-cmb.c
+++ b/drivers/block/nvme-cmb.c
@@ -1,2 +1,17 @@
#include <linux/module.h>
-MODULE_LICENSE("GPL");
\ No newline at end of file
+#include <linux/init.h>
+#include <linux/kernel.h>
+MODULE_LICENSE("GPL");
+static int __init nvme_cmb_init(void)
+ {
+ pr_info("loading nvme-cmb module\n");
+ return 0;
+ }
+
+static void __exit nvme_cmb_exit(void)
+ {
+ pr_info("unloading nvme-cmb module\n");
+ }
+
+module_init(nvme_cmb_init);
+module_exit(nvme_cmb_exit);
\ No newline at end of file
--
2.39.2
More information about the LKW
mailing list