Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
edac_module.h File Reference
#include "edac_core.h"

Go to the source code of this file.

Macros

#define edac_pci_do_parity_check()
 
#define edac_pci_clear_parity_errors()
 
#define edac_sysfs_pci_setup()   (0)
 
#define edac_sysfs_pci_teardown()
 
#define edac_pci_get_check_errors()
 
#define edac_pci_get_poll_msec()
 
#define edac_pci_handle_pe()
 
#define edac_pci_handle_npe()
 

Functions

int edac_mc_sysfs_init (void)
 
void edac_mc_sysfs_exit (void)
 
int edac_create_sysfs_mci_device (struct mem_ctl_info *mci)
 
void edac_remove_sysfs_mci_device (struct mem_ctl_info *mci)
 
void edac_unregister_sysfs (struct mem_ctl_info *mci)
 
int edac_get_log_ue (void)
 
int edac_get_log_ce (void)
 
int edac_get_panic_on_ue (void)
 
int edac_mc_get_log_ue (void)
 
int edac_mc_get_log_ce (void)
 
int edac_mc_get_panic_on_ue (void)
 
int edac_get_poll_msec (void)
 
int edac_mc_get_poll_msec (void)
 
unsigned edac_dimm_info_location (struct dimm_info *dimm, char *buf, unsigned len)
 
int edac_device_register_sysfs_main_kobj (struct edac_device_ctl_info *edac_dev)
 
void edac_device_unregister_sysfs_main_kobj (struct edac_device_ctl_info *edac_dev)
 
int edac_device_create_sysfs (struct edac_device_ctl_info *edac_dev)
 
void edac_device_remove_sysfs (struct edac_device_ctl_info *edac_dev)
 
void edac_device_workq_setup (struct edac_device_ctl_info *edac_dev, unsigned msec)
 
void edac_device_workq_teardown (struct edac_device_ctl_info *edac_dev)
 
void edac_device_reset_delay_period (struct edac_device_ctl_info *edac_dev, unsigned long value)
 
void edac_mc_reset_delay_period (int value)
 
voidedac_align_ptr (void **p, unsigned size, int n_elems)
 

Variables

struct workqueue_structedac_workqueue
 

Macro Definition Documentation

#define edac_pci_clear_parity_errors ( )

Definition at line 90 of file edac_module.h.

#define edac_pci_do_parity_check ( )

Definition at line 89 of file edac_module.h.

#define edac_pci_get_check_errors ( )

Definition at line 93 of file edac_module.h.

#define edac_pci_get_poll_msec ( )

Definition at line 94 of file edac_module.h.

#define edac_pci_handle_npe ( )

Definition at line 96 of file edac_module.h.

#define edac_pci_handle_pe ( )

Definition at line 95 of file edac_module.h.

#define edac_sysfs_pci_setup ( )    (0)

Definition at line 91 of file edac_module.h.

#define edac_sysfs_pci_teardown ( )

Definition at line 92 of file edac_module.h.

Function Documentation

void* edac_align_ptr ( void **  p,
unsigned  size,
int  n_elems 
)

edac_align_ptr - Prepares the pointer offsets for a single-shot allocation : pointer to a pointer with the memory offset to be used. At return, this will be incremented to point to the next offset : Size of the data structure to be reserved : Number of elements that should be reserved

If 'size' is a constant, the compiler will optimize this whole function down to either a no-op or the addition of a constant to the value of '*p'.

The 'p' pointer is absolutely needed to keep the proper advancing further in memory to the proper offsets when allocating the struct along with its embedded structs, as edac_device_alloc_ctl_info() does it above, for example.

At return, the pointer 'p' will be incremented to be used on a next call to this function.

Definition at line 165 of file edac_mc.c.

int edac_create_sysfs_mci_device ( struct mem_ctl_info mci)

Definition at line 980 of file edac_mc_sysfs.c.

int edac_device_create_sysfs ( struct edac_device_ctl_info edac_dev)

Definition at line 810 of file edac_device_sysfs.c.

int edac_device_register_sysfs_main_kobj ( struct edac_device_ctl_info edac_dev)

Definition at line 231 of file edac_device_sysfs.c.

void edac_device_remove_sysfs ( struct edac_device_ctl_info edac_dev)

Definition at line 867 of file edac_device_sysfs.c.

void edac_device_reset_delay_period ( struct edac_device_ctl_info edac_dev,
unsigned long  value 
)

Definition at line 454 of file edac_device.c.

void edac_device_unregister_sysfs_main_kobj ( struct edac_device_ctl_info edac_dev)

Definition at line 296 of file edac_device_sysfs.c.

void edac_device_workq_setup ( struct edac_device_ctl_info edac_dev,
unsigned  msec 
)

Definition at line 405 of file edac_device.c.

void edac_device_workq_teardown ( struct edac_device_ctl_info edac_dev)

Definition at line 436 of file edac_device.c.

unsigned edac_dimm_info_location ( struct dimm_info dimm,
char buf,
unsigned  len 
)

Definition at line 45 of file edac_mc.c.

int edac_get_log_ce ( void  )
int edac_get_log_ue ( void  )
int edac_get_panic_on_ue ( void  )
int edac_get_poll_msec ( void  )
int edac_mc_get_log_ce ( void  )

Definition at line 37 of file edac_mc_sysfs.c.

int edac_mc_get_log_ue ( void  )

Definition at line 32 of file edac_mc_sysfs.c.

int edac_mc_get_panic_on_ue ( void  )

Definition at line 42 of file edac_mc_sysfs.c.

int edac_mc_get_poll_msec ( void  )

Definition at line 48 of file edac_mc_sysfs.c.

void edac_mc_reset_delay_period ( int  value)

Definition at line 603 of file edac_mc.c.

void edac_mc_sysfs_exit ( void  )

Definition at line 1146 of file edac_mc_sysfs.c.

int edac_mc_sysfs_init ( void  )

Definition at line 1118 of file edac_mc_sysfs.c.

void edac_remove_sysfs_mci_device ( struct mem_ctl_info mci)

Definition at line 1069 of file edac_mc_sysfs.c.

void edac_unregister_sysfs ( struct mem_ctl_info mci)

Definition at line 1092 of file edac_mc_sysfs.c.

Variable Documentation

struct workqueue_struct* edac_workqueue

Definition at line 27 of file edac_module.c.