Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
salinfo.c File Reference
#include <linux/capability.h>
#include <linux/cpu.h>
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/timer.h>
#include <linux/vmalloc.h>
#include <linux/semaphore.h>
#include <asm/sal.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  salinfo_entry_t
 
struct  salinfo_data_saved
 
struct  salinfo_data
 
struct  salinfo_platform_oemdata_parms
 

Macros

#define NR_SALINFO_ENTRIES   ARRAY_SIZE(salinfo_entries)
 
#define SALINFO_TIMER_DELAY   (60*HZ)
 

Enumerations

enum  salinfo_state { STATE_NO_DATA, STATE_LOG_RECORD, STATE_OEMDATA }
 

Functions

 MODULE_AUTHOR ("Jesse Barnes <[email protected]>")
 
 MODULE_DESCRIPTION ("/proc interface to IA-64 SAL features")
 
 MODULE_LICENSE ("GPL")
 
void salinfo_log_wakeup (int type, u8 *buffer, u64 size, int irqsafe)
 
void ia64_mlogbuf_dump (void)
 
 module_init (salinfo_init)
 

Variables

int(* salinfo_platform_oemdata )(const u8 *sect_header, u8 **oemdata, u64 *oemdata_size)
 

Macro Definition Documentation

#define NR_SALINFO_ENTRIES   ARRAY_SIZE(salinfo_entries)

Definition at line 75 of file salinfo.c.

#define SALINFO_TIMER_DELAY   (60*HZ)

Definition at line 266 of file salinfo.c.

Enumeration Type Documentation

Enumerator:
STATE_NO_DATA 
STATE_LOG_RECORD 
STATE_OEMDATA 

Definition at line 135 of file salinfo.c.

Function Documentation

void ia64_mlogbuf_dump ( void  )

Definition at line 243 of file mca.c.

MODULE_AUTHOR ( "Jesse Barnes <[email protected]>"  )
MODULE_DESCRIPTION ( "/proc interface to IA-64 SAL features )
module_init ( salinfo_init  )
MODULE_LICENSE ( "GPL"  )
void salinfo_log_wakeup ( int  type,
u8 buffer,
u64  size,
int  irqsafe 
)

Definition at line 227 of file salinfo.c.

Variable Documentation

int(* salinfo_platform_oemdata)(const u8 *sect_header, u8 **oemdata, u64 *oemdata_size)

salinfo_platform_oemdata - optional callback to decode oemdata from an error record. : pointer to the start of the section to decode. : returns vmalloc area containing the decoded output. : returns length of decoded output (strlen).

Description: If user space asks for oem data to be decoded by the kernel and/or prom and the platform has set salinfo_platform_oemdata to the address of a platform specific routine then call that routine. salinfo_platform_oemdata vmalloc's and formats its output area, returning the address of the text and its strlen. Returns 0 for success, -ve for error. The callback is invoked on the cpu that generated the error record.

Definition at line 175 of file salinfo.c.