kdebug.h 487 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_KDEBUG_H
  3. #define _LINUX_KDEBUG_H
  4. #include <asm/kdebug.h>
  5. struct notifier_block;
  6. struct die_args {
  7. struct pt_regs *regs;
  8. const char *str;
  9. long err;
  10. int trapnr;
  11. int signr;
  12. };
  13. int register_die_notifier(struct notifier_block *nb);
  14. int unregister_die_notifier(struct notifier_block *nb);
  15. int notify_die(enum die_val val, const char *str,
  16. struct pt_regs *regs, long err, int trap, int sig);
  17. #endif /* _LINUX_KDEBUG_H */