[PATCH 1/6] module: store init_pid and idempotent in module

julian-lagattuta posted 6 patches 1 week, 6 days ago
[PATCH 1/6] module: store init_pid and idempotent in module
Posted by julian-lagattuta 1 week, 6 days ago
Signed-off-by: julian-lagattuta <julian.lagattuta@gmail.com>
---
 include/linux/module.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/module.h b/include/linux/module.h
index 5faa1fb1f4b4..5ac5f4992fe8 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -599,6 +599,10 @@ struct module {
 #ifdef CONFIG_DYNAMIC_DEBUG_CORE
 	struct _ddebug_info dyndbg_info;
 #endif
+#ifdef CONFIG_MODULE_FORCE_UNLOAD
+	struct pid *init_pid;
+	struct idempotent *idempotent;
+#endif
 } ____cacheline_aligned __randomize_layout;
 #ifndef MODULE_ARCH_INIT
 #define MODULE_ARCH_INIT {}
-- 
2.45.2