aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 08e5e75d6122..fd1241e1416f 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -365,7 +365,9 @@ static inline int module_is_live(struct module *mod)
365/* Is this address in a module? (second is with no locks, for oops) */ 365/* Is this address in a module? (second is with no locks, for oops) */
366struct module *module_text_address(unsigned long addr); 366struct module *module_text_address(unsigned long addr);
367struct module *__module_text_address(unsigned long addr); 367struct module *__module_text_address(unsigned long addr);
368int is_module_address(unsigned long addr); 368struct module *__module_address(unsigned long addr);
369bool is_module_address(unsigned long addr);
370bool is_module_text_address(unsigned long addr);
369 371
370static inline int within_module_core(unsigned long addr, struct module *mod) 372static inline int within_module_core(unsigned long addr, struct module *mod)
371{ 373{
@@ -494,21 +496,29 @@ search_module_extables(unsigned long addr)
494 return NULL; 496 return NULL;
495} 497}
496 498
497/* Is this address in a module? */
498static inline struct module *module_text_address(unsigned long addr) 499static inline struct module *module_text_address(unsigned long addr)
499{ 500{
500 return NULL; 501 return NULL;
501} 502}
502 503
503/* Is this address in a module? (don't take a lock, we're oopsing) */ 504static inline struct module *__module_address(unsigned long addr)
505{
506 return NULL;
507}
508
504static inline struct module *__module_text_address(unsigned long addr) 509static inline struct module *__module_text_address(unsigned long addr)
505{ 510{
506 return NULL; 511 return NULL;
507} 512}
508 513
509static inline int is_module_address(unsigned long addr) 514static inline bool is_module_address(unsigned long addr)
510{ 515{
511 return 0; 516 return false;
517}
518
519static inline bool is_module_text_address(unsigned long addr)
520{
521 return false;
512} 522}
513 523
514/* Get/put a kernel symbol (calls should be symmetric) */ 524/* Get/put a kernel symbol (calls should be symmetric) */