Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
mce-severity.c File Reference
#include <linux/kernel.h>
#include <linux/seq_file.h>
#include <linux/init.h>
#include <linux/debugfs.h>
#include <asm/mce.h>
#include "mce-internal.h"

Go to the source code of this file.

Data Structures

struct  severity
 

Macros

#define MCESEV(s, m, c...)   { .sev = MCE_ ## s ## _SEVERITY, .msg = m, ## c }
 
#define KERNEL   .context = IN_KERNEL
 
#define USER   .context = IN_USER
 
#define SER   .ser = SER_REQUIRED
 
#define NOSER   .ser = NO_SER
 
#define BITCLR(x)   .mask = x, .result = 0
 
#define BITSET(x)   .mask = x, .result = x
 
#define MCGMASK(x, y)   .mcgmask = x, .mcgres = y
 
#define MASK(x, y)   .mask = x, .result = y
 
#define MCI_UC_S   (MCI_STATUS_UC|MCI_STATUS_S)
 
#define MCI_UC_SAR   (MCI_STATUS_UC|MCI_STATUS_S|MCI_STATUS_AR)
 
#define MCI_ADDR   (MCI_STATUS_ADDRV|MCI_STATUS_MISCV)
 

Enumerations

enum  context { IN_KERNEL = 1, IN_USER = 2 }
 
enum  ser { SER_REQUIRED = 1, NO_SER = 2 }
 

Functions

int mce_severity (struct mce *m, int tolerant, char **msg)
 

Macro Definition Documentation

#define BITCLR (   x)    .mask = x, .result = 0
#define BITSET (   x)    .mask = x, .result = x
#define KERNEL   .context = IN_KERNEL
#define MASK (   x,
  y 
)    .mask = x, .result = y
#define MCESEV (   s,
  m,
  c... 
)    { .sev = MCE_ ## s ## _SEVERITY, .msg = m, ## c }
#define MCGMASK (   x,
  y 
)    .mcgmask = x, .mcgres = y
#define MCI_ADDR   (MCI_STATUS_ADDRV|MCI_STATUS_MISCV)
#define MCI_UC_S   (MCI_STATUS_UC|MCI_STATUS_S)
#define MCI_UC_SAR   (MCI_STATUS_UC|MCI_STATUS_S|MCI_STATUS_AR)
#define NOSER   .ser = NO_SER
#define SER   .ser = SER_REQUIRED
#define USER   .context = IN_USER

Enumeration Type Documentation

Enumerator:
IN_KERNEL 
IN_USER 

Definition at line 32 of file mce-severity.c.

enum ser
Enumerator:
SER_REQUIRED 
NO_SER 

Definition at line 33 of file mce-severity.c.

Function Documentation

int mce_severity ( struct mce m,
int  tolerant,
char **  msg 
)

Definition at line 186 of file mce-severity.c.