diff options
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 69761ce0dbf0..c3d3fc4ffb18 100644 --- a/include/linux/module.h +++ b/include/linux/module.h | |||
@@ -387,6 +387,10 @@ int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type, | |||
387 | /* Look for this name: can be of form module:name. */ | 387 | /* Look for this name: can be of form module:name. */ |
388 | unsigned long module_kallsyms_lookup_name(const char *name); | 388 | unsigned long module_kallsyms_lookup_name(const char *name); |
389 | 389 | ||
390 | int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, | ||
391 | struct module *, unsigned long), | ||
392 | void *data); | ||
393 | |||
390 | extern void __module_put_and_exit(struct module *mod, long code) | 394 | extern void __module_put_and_exit(struct module *mod, long code) |
391 | __attribute__((noreturn)); | 395 | __attribute__((noreturn)); |
392 | #define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code); | 396 | #define module_put_and_exit(code) __module_put_and_exit(THIS_MODULE, code); |
@@ -566,6 +570,14 @@ static inline unsigned long module_kallsyms_lookup_name(const char *name) | |||
566 | return 0; | 570 | return 0; |
567 | } | 571 | } |
568 | 572 | ||
573 | static inline int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *, | ||
574 | struct module *, | ||
575 | unsigned long), | ||
576 | void *data) | ||
577 | { | ||
578 | return 0; | ||
579 | } | ||
580 | |||
569 | static inline int register_module_notifier(struct notifier_block * nb) | 581 | static inline int register_module_notifier(struct notifier_block * nb) |
570 | { | 582 | { |
571 | /* no events will happen anyway, so this can always succeed */ | 583 | /* no events will happen anyway, so this can always succeed */ |