aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-04-19 15:49:58 -0400
committerRusty Russell <rusty@rustcorp.com.au>2011-05-19 03:25:26 -0400
commitde4d8d53465483168d6a627d409ee2d09d8e3308 (patch)
treedadc9b82860842dcb970f2898f677e0d2373a2ab /include/linux/module.h
parent01526ed0830643bd53a8434c3068e4c077e1b09d (diff)
module: each_symbol_section instead of each_symbol
Instead of having a callback function for each symbol in the kernel, have a callback for each array of symbols. This eases the logic when we move to sorted symbols and binary search. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Alessio Igor Bogani <abogani@kernel.org>
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 65cc6cc73ca8..49f4ad0ddec2 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -477,8 +477,9 @@ const struct kernel_symbol *find_symbol(const char *name,
477 bool warn); 477 bool warn);
478 478
479/* Walk the exported symbol table */ 479/* Walk the exported symbol table */
480bool each_symbol(bool (*fn)(const struct symsearch *arr, struct module *owner, 480bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
481 unsigned int symnum, void *data), void *data); 481 struct module *owner,
482 void *data), void *data);
482 483
483/* Returns 0 and fills in value, defined and namebuf, or -ERANGE if 484/* Returns 0 and fills in value, defined and namebuf, or -ERANGE if
484 symnum out of range. */ 485 symnum out of range. */