Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: 6246b6128bbe34d0752f119cf7c5111c85fe481d authored by Linus Torvalds on 03 April 2006, 03:22:10 UTC
Linux v2.6.17-rc1
Tip revision: 6246b61
nmi.h
/*
 *  linux/include/asm-i386/nmi.h
 */
#ifndef ASM_NMI_H
#define ASM_NMI_H

#include <linux/pm.h>
 
struct pt_regs;
 
typedef int (*nmi_callback_t)(struct pt_regs * regs, int cpu);
 
/** 
 * set_nmi_callback
 *
 * Set a handler for an NMI. Only one handler may be
 * set. Return 1 if the NMI was handled.
 */
void set_nmi_callback(nmi_callback_t callback);
 
/** 
 * unset_nmi_callback
 *
 * Remove the handler previously set.
 */
void unset_nmi_callback(void);
 
#endif /* ASM_NMI_H */
back to top