Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
nmi.h File Reference
#include <linux/pm.h>
#include <asm/irq.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  nmiaction
 

Macros

#define NMI_FLAG_FIRST   1
 
#define NMI_DONE   0
 
#define NMI_HANDLED   1
 
#define register_nmi_handler(t, fn, fg, n, init...)
 

Typedefs

typedef int(* nmi_handler_t )(unsigned int, struct pt_regs *)
 

Enumerations

enum  {
  NMI_LOCAL =0, NMI_UNKNOWN, NMI_SERR, NMI_IO_CHECK,
  NMI_MAX
}
 

Functions

int __register_nmi_handler (unsigned int, struct nmiaction *)
 
void unregister_nmi_handler (unsigned int, const char *)
 
void stop_nmi (void)
 
void restart_nmi (void)
 
void local_touch_nmi (void)
 

Macro Definition Documentation

#define NMI_DONE   0

Definition at line 35 of file nmi.h.

#define NMI_FLAG_FIRST   1

Definition at line 25 of file nmi.h.

#define NMI_HANDLED   1

Definition at line 36 of file nmi.h.

#define register_nmi_handler (   t,
  fn,
  fg,
  n,
  init... 
)
Value:
({ \
static struct nmiaction init fn##_na = { \
.handler = (fn), \
.name = (n), \
.flags = (fg), \
}; \
__register_nmi_handler((t), &fn##_na); \
})

Definition at line 47 of file nmi.h.

Typedef Documentation

typedef int(* nmi_handler_t)(unsigned int, struct pt_regs *)

Definition at line 38 of file nmi.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
NMI_LOCAL 
NMI_UNKNOWN 
NMI_SERR 
NMI_IO_CHECK 
NMI_MAX 

Definition at line 27 of file nmi.h.

Function Documentation

int __register_nmi_handler ( unsigned  int,
struct nmiaction  
)

Definition at line 108 of file nmi.c.

void local_touch_nmi ( void  )

Definition at line 508 of file nmi.c.

void restart_nmi ( void  )

Definition at line 502 of file nmi.c.

void stop_nmi ( void  )

Definition at line 497 of file nmi.c.

void unregister_nmi_handler ( unsigned  int,
const char  
)

Definition at line 141 of file nmi.c.