aboutsummaryrefslogtreecommitdiffstats
path: root/com32/include/sys/module.h
diff options
context:
space:
mode:
Diffstat (limited to 'com32/include/sys/module.h')
-rw-r--r--com32/include/sys/module.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/com32/include/sys/module.h b/com32/include/sys/module.h
index 66008d2f..2c9ce9d4 100644
--- a/com32/include/sys/module.h
+++ b/com32/include/sys/module.h
@@ -160,6 +160,17 @@ struct module_dep {
#define MODULE_ELF_MAIN_PTR "__module_main_ptr" // Entry pointer symbol name
/**
+ * modules_head - A global linked list containing all the loaded modules.
+ */
+extern struct list_head modules_head;
+
+
+/**
+ * for_each_module -
+ */
+#define for_each_module(m) list_for_each_entry(m, &modules_head, list)
+
+/**
* modules_init - initialize the module subsystem.
*
* This function must be called before any module operation is to be performed.