summaryrefslogtreecommitdiffstats
path: root/include/linux/extable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/extable.h')
-rw-r--r--include/linux/extable.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/extable.h b/include/linux/extable.h
new file mode 100644
index 000000000000..2c71dccd1bc3
--- /dev/null
+++ b/include/linux/extable.h
@@ -0,0 +1,30 @@
1#ifndef _LINUX_EXTABLE_H
2#define _LINUX_EXTABLE_H
3
4struct module;
5struct exception_table_entry;
6
7const struct exception_table_entry *
8search_extable(const struct exception_table_entry *first,
9 const struct exception_table_entry *last,
10 unsigned long value);
11void sort_extable(struct exception_table_entry *start,
12 struct exception_table_entry *finish);
13void sort_main_extable(void);
14void trim_init_extable(struct module *m);
15
16/* Given an address, look for it in the exception tables */
17const struct exception_table_entry *search_exception_tables(unsigned long add);
18
19#ifdef CONFIG_MODULES
20/* For extable.c to search modules' exception tables. */
21const struct exception_table_entry *search_module_extables(unsigned long addr);
22#else
23static inline const struct exception_table_entry *
24search_module_extables(unsigned long addr)
25{
26 return NULL;
27}
28#endif /*CONFIG_MODULES*/
29
30#endif /* _LINUX_EXTABLE_H */