diff options
| author | 2009-01-17 12:01:12 +0100 | |
|---|---|---|
| committer | 2009-01-17 12:01:12 +0100 | |
| commit | d1a020050c6ce1a0794ff73582ccf47e4db536f7 (patch) | |
| tree | 1b7250410f24703cd77c76156e758db9887137aa /include/linux/module.h | |
| parent | ALSA: rename "Device" to "Toshiba SB-0500" via quirks (diff) | |
| parent | ALSA: usb-audio - Cache mixer values (diff) | |
Merge branch 'topic/usb-mixer-cache' into next/usb-audio
Diffstat (limited to 'include/linux/module.h')
| -rw-r--r-- | include/linux/module.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index 3bfed013350b..4f7ea12463d3 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -294,9 +294,6 @@ struct module /* The size of the executable code in each section. */ unsigned int init_text_size, core_text_size; - /* The handle returned from unwind_add_table. */ - void *unwind_info; - /* Arch-specific module values */ struct mod_arch_specific arch; @@ -368,6 +365,18 @@ struct module *module_text_address(unsigned long addr); struct module *__module_text_address(unsigned long addr); int is_module_address(unsigned long addr); +static inline int within_module_core(unsigned long addr, struct module *mod) +{ + return (unsigned long)mod->module_core <= addr && + addr < (unsigned long)mod->module_core + mod->core_size; +} + +static inline int within_module_init(unsigned long addr, struct module *mod) +{ + return (unsigned long)mod->module_init <= addr && + addr < (unsigned long)mod->module_init + mod->init_size; +} + /* Returns 0 and fills in value, defined and namebuf, or -ERANGE if symnum out of range. */ int module_get_kallsym(unsigned int symnum, unsigned long *value, char *type, |
