Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mtdoops.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/console.h>
#include <linux/vmalloc.h>
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/mtd/mtd.h>
#include <linux/kmsg_dump.h>

Go to the source code of this file.

Data Structures

struct  mtdoops_context
 

Macros

#define MTDOOPS_MAX_MTD_SIZE   (8 * 1024 * 1024)
 
#define MTDOOPS_KERNMSG_MAGIC   0x5d005d00
 
#define MTDOOPS_HEADER_SIZE   8
 

Functions

 module_param (record_size, ulong, 0400)
 
 MODULE_PARM_DESC (record_size,"record size for MTD OOPS pages in bytes (default 4096)")
 
 module_param_string (mtddev, mtddev, 80, 0400)
 
 MODULE_PARM_DESC (mtddev,"name or index number of the MTD device to use")
 
 module_param (dump_oops, int, 0600)
 
 MODULE_PARM_DESC (dump_oops,"set to 1 to dump oopses, 0 to only dump panics (default 1)")
 
 module_init (mtdoops_init)
 
 module_exit (mtdoops_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Richard Purdie <[email protected]>")
 
 MODULE_DESCRIPTION ("MTD Oops/Panic console logger/driver")
 

Macro Definition Documentation

#define MTDOOPS_HEADER_SIZE   8

Definition at line 40 of file mtdoops.c.

#define MTDOOPS_KERNMSG_MAGIC   0x5d005d00

Definition at line 39 of file mtdoops.c.

#define MTDOOPS_MAX_MTD_SIZE   (8 * 1024 * 1024)

Definition at line 37 of file mtdoops.c.

Function Documentation

MODULE_AUTHOR ( "Richard Purdie <[email protected]>"  )
MODULE_DESCRIPTION ( "MTD Oops/Panic console logger/driver )
module_exit ( mtdoops_exit  )
module_init ( mtdoops_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( record_size  ,
ulong  ,
0400   
)
module_param ( dump_oops  ,
int  ,
0600   
)
module_param_string ( mtddev  ,
mtddev  ,
80  ,
0400   
)
MODULE_PARM_DESC ( record_size  ,
"record size for MTD OOPS pages in bytes (default 4096)"   
)
MODULE_PARM_DESC ( mtddev  ,
"name or index number of the MTD device to use"   
)
MODULE_PARM_DESC ( dump_oops  ,
"set to 1 to dump  oopses,
0 to only dump panics(default 1)"   
)