2016-07-27 10:36:34 +08:00
|
|
|
#ifndef _LINUX_EXTABLE_H
|
|
|
|
#define _LINUX_EXTABLE_H
|
|
|
|
|
2016-07-28 11:11:47 +08:00
|
|
|
#include <linux/stddef.h> /* for NULL */
|
2017-07-11 06:51:58 +08:00
|
|
|
#include <linux/types.h>
|
2016-07-28 11:11:47 +08:00
|
|
|
|
2016-07-27 10:36:34 +08:00
|
|
|
struct module;
|
|
|
|
struct exception_table_entry;
|
|
|
|
|
|
|
|
const struct exception_table_entry *
|
2017-07-11 06:51:58 +08:00
|
|
|
search_extable(const struct exception_table_entry *base,
|
|
|
|
const size_t num,
|
2016-07-27 10:36:34 +08:00
|
|
|
unsigned long value);
|
|
|
|
void sort_extable(struct exception_table_entry *start,
|
|
|
|
struct exception_table_entry *finish);
|
|
|
|
void sort_main_extable(void);
|
|
|
|
void trim_init_extable(struct module *m);
|
|
|
|
|
|
|
|
/* Given an address, look for it in the exception tables */
|
|
|
|
const struct exception_table_entry *search_exception_tables(unsigned long add);
|
|
|
|
|
|
|
|
#ifdef CONFIG_MODULES
|
|
|
|
/* For extable.c to search modules' exception tables. */
|
|
|
|
const struct exception_table_entry *search_module_extables(unsigned long addr);
|
|
|
|
#else
|
|
|
|
static inline const struct exception_table_entry *
|
|
|
|
search_module_extables(unsigned long addr)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif /*CONFIG_MODULES*/
|
|
|
|
|
|
|
|
#endif /* _LINUX_EXTABLE_H */
|