nmi.h 488 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * linux/include/asm-i386/nmi.h
  3. */
  4. #ifndef ASM_NMI_H
  5. #define ASM_NMI_H
  6. #include <linux/pm.h>
  7. struct pt_regs;
  8. typedef int (*nmi_callback_t)(struct pt_regs * regs, int cpu);
  9. /**
  10. * set_nmi_callback
  11. *
  12. * Set a handler for an NMI. Only one handler may be
  13. * set. Return 1 if the NMI was handled.
  14. */
  15. void set_nmi_callback(nmi_callback_t callback);
  16. /**
  17. * unset_nmi_callback
  18. *
  19. * Remove the handler previously set.
  20. */
  21. void unset_nmi_callback(void);
  22. #endif /* ASM_NMI_H */