extable.h 960 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef _LINUX_EXTABLE_H
  2. #define _LINUX_EXTABLE_H
  3. #include <linux/stddef.h> /* for NULL */
  4. struct module;
  5. struct exception_table_entry;
  6. const struct exception_table_entry *
  7. search_extable(const struct exception_table_entry *first,
  8. const struct exception_table_entry *last,
  9. unsigned long value);
  10. void sort_extable(struct exception_table_entry *start,
  11. struct exception_table_entry *finish);
  12. void sort_main_extable(void);
  13. void trim_init_extable(struct module *m);
  14. /* Given an address, look for it in the exception tables */
  15. const struct exception_table_entry *search_exception_tables(unsigned long add);
  16. #ifdef CONFIG_MODULES
  17. /* For extable.c to search modules' exception tables. */
  18. const struct exception_table_entry *search_module_extables(unsigned long addr);
  19. #else
  20. static inline const struct exception_table_entry *
  21. search_module_extables(unsigned long addr)
  22. {
  23. return NULL;
  24. }
  25. #endif /*CONFIG_MODULES*/
  26. #endif /* _LINUX_EXTABLE_H */