#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.
#define NR_SALINFO_ENTRIES ARRAY_SIZE(salinfo_entries) |
#define SALINFO_TIMER_DELAY (60*HZ) |
- Enumerator:
STATE_NO_DATA |
|
STATE_LOG_RECORD |
|
STATE_OEMDATA |
|
Definition at line 135 of file salinfo.c.
module_init |
( |
salinfo_init |
| ) |
|
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.