summaryrefslogtreecommitdiffstats
path: root/include/module.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/module.h')
-rw-r--r--include/module.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/module.h b/include/module.h
index 8d3bbf2..67d2962 100644
--- a/include/module.h
+++ b/include/module.h
@@ -20,6 +20,8 @@ struct kernel_symbol
const char *name;
};
+struct module * load_module(void *mod_image, unsigned long len);
+
/* For every exported symbol, place a struct in the __ksymtab section */
#define __EXPORT_SYMBOL(sym, sec) \
extern typeof(sym) sym; \
@@ -71,5 +73,10 @@ int apply_relocate_add(Elf_Shdr *sechdrs,
#define EXPORT_SYMBOL(sym)
#endif /* CONFIG_MODULE */
+extern struct list_head module_list;
+
+#define for_each_module(m) \
+ list_for_each_entry(m, &module_list, list)
+
#endif /* __MODULE_H */