From 932b57873db47db89989b86789b216e50a753478 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 13 Aug 2008 15:54:53 +0200 Subject: move several commands into extra files move false, true, help, insmod, lsmod, version into extra files Signed-off-by: Sascha Hauer --- include/module.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/module.h') diff --git a/include/module.h b/include/module.h index 8d3bbf2160..67d2962eaa 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 */ -- cgit v1.2.3