Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
edac_device.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/smp.h>
#include <linux/init.h>
#include <linux/sysctl.h>
#include <linux/highmem.h>
#include <linux/timer.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/ctype.h>
#include <linux/workqueue.h>
#include <asm/uaccess.h>
#include <asm/page.h>
#include "edac_core.h"
#include "edac_module.h"

Go to the source code of this file.

Functions

struct edac_device_ctl_infoedac_device_alloc_ctl_info (unsigned sz_private, char *edac_device_name, unsigned nr_instances, char *edac_block_name, unsigned nr_blocks, unsigned offset_value, struct edac_dev_sysfs_block_attribute *attrib_spec, unsigned nr_attrib, int device_index)
 
 EXPORT_SYMBOL_GPL (edac_device_alloc_ctl_info)
 
void edac_device_free_ctl_info (struct edac_device_ctl_info *ctl_info)
 
 EXPORT_SYMBOL_GPL (edac_device_free_ctl_info)
 
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)
 
int edac_device_alloc_index (void)
 
 EXPORT_SYMBOL_GPL (edac_device_alloc_index)
 
int edac_device_add_device (struct edac_device_ctl_info *edac_dev)
 
 EXPORT_SYMBOL_GPL (edac_device_add_device)
 
struct edac_device_ctl_infoedac_device_del_device (struct device *dev)
 
 EXPORT_SYMBOL_GPL (edac_device_del_device)
 
void edac_device_handle_ce (struct edac_device_ctl_info *edac_dev, int inst_nr, int block_nr, const char *msg)
 
 EXPORT_SYMBOL_GPL (edac_device_handle_ce)
 
void edac_device_handle_ue (struct edac_device_ctl_info *edac_dev, int inst_nr, int block_nr, const char *msg)
 
 EXPORT_SYMBOL_GPL (edac_device_handle_ue)
 

Function Documentation

int edac_device_add_device ( struct edac_device_ctl_info edac_dev)

edac_device_add_device: Insert the 'edac_dev' structure into the edac_device global list and create sysfs entries associated with edac_device structure. : pointer to the edac_device structure to be added to the list 'edac_device' structure.

Return: 0 Success !0 Failure

Definition at line 494 of file edac_device.c.

struct edac_device_ctl_info* edac_device_alloc_ctl_info ( unsigned  sz_private,
char edac_device_name,
unsigned  nr_instances,
char edac_block_name,
unsigned  nr_blocks,
unsigned  offset_value,
struct edac_dev_sysfs_block_attribute attrib_spec,
unsigned  nr_attrib,
int  device_index 
)
read

Definition at line 68 of file edac_device.c.

int edac_device_alloc_index ( void  )

Definition at line 475 of file edac_device.c.

struct edac_device_ctl_info* edac_device_del_device ( struct device dev)
read

edac_device_del_device: Remove sysfs entries for specified edac_device structure and then remove edac_device structure from global list

: Pointer to 'struct device' representing edac_device structure to remove.

Return: Pointer to removed edac_device structure, OR NULL if device not found.

Definition at line 566 of file edac_device.c.

void edac_device_free_ctl_info ( struct edac_device_ctl_info ctl_info)

Definition at line 252 of file edac_device.c.

void edac_device_handle_ce ( struct edac_device_ctl_info edac_dev,
int  inst_nr,
int  block_nr,
const char msg 
)

Definition at line 624 of file edac_device.c.

void edac_device_handle_ue ( struct edac_device_ctl_info edac_dev,
int  inst_nr,
int  block_nr,
const char msg 
)

Definition at line 670 of file edac_device.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_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.

EXPORT_SYMBOL_GPL ( edac_device_alloc_ctl_info  )
EXPORT_SYMBOL_GPL ( edac_device_free_ctl_info  )
EXPORT_SYMBOL_GPL ( edac_device_alloc_index  )
EXPORT_SYMBOL_GPL ( edac_device_add_device  )
EXPORT_SYMBOL_GPL ( edac_device_del_device  )
EXPORT_SYMBOL_GPL ( edac_device_handle_ce  )
EXPORT_SYMBOL_GPL ( edac_device_handle_ue  )