Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mtd_torturetest.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/err.h>
#include <linux/mtd/mtd.h>
#include <linux/slab.h>
#include <linux/sched.h>

Go to the source code of this file.

Macros

#define PRINT_PREF   KERN_INFO "mtd_torturetest: "
 
#define RETRIES   3
 

Functions

 module_param (eb, int, S_IRUGO)
 
 MODULE_PARM_DESC (eb,"eraseblock number within the selected MTD device")
 
 module_param (ebcnt, int, S_IRUGO)
 
 MODULE_PARM_DESC (ebcnt,"number of consecutive eraseblocks to torture")
 
 module_param (pgcnt, int, S_IRUGO)
 
 MODULE_PARM_DESC (pgcnt,"number of pages per eraseblock to torture (0 => all)")
 
 module_param (dev, int, S_IRUGO)
 
 MODULE_PARM_DESC (dev,"MTD device number to use")
 
 module_param (gran, int, S_IRUGO)
 
 MODULE_PARM_DESC (gran,"how often the status information should be printed")
 
 module_param (check, int, S_IRUGO)
 
 MODULE_PARM_DESC (check,"if the written data should be checked")
 
 module_param (cycles_count, uint, S_IRUGO)
 
 MODULE_PARM_DESC (cycles_count,"how many erase cycles to do ""(infinite by default)")
 
 module_init (tort_init)
 
 module_exit (tort_exit)
 
 MODULE_DESCRIPTION ("Eraseblock torturing module")
 
 MODULE_AUTHOR ("Artem Bityutskiy, Jarkko Lavinen, Adrian Hunter")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define PRINT_PREF   KERN_INFO "mtd_torturetest: "

Definition at line 34 of file mtd_torturetest.c.

#define RETRIES   3

Definition at line 35 of file mtd_torturetest.c.

Function Documentation

MODULE_AUTHOR ( "Artem  Bityutskiy,
Jarkko  Lavinen,
Adrian Hunter"   
)
MODULE_DESCRIPTION ( "Eraseblock torturing module )
module_exit ( tort_exit  )
module_init ( tort_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( eb  ,
int  ,
S_IRUGO   
)
module_param ( ebcnt  ,
int  ,
S_IRUGO   
)
module_param ( pgcnt  ,
int  ,
S_IRUGO   
)
module_param ( dev  ,
int  ,
S_IRUGO   
)
module_param ( gran  ,
int  ,
S_IRUGO   
)
module_param ( check  ,
int  ,
S_IRUGO   
)
module_param ( cycles_count  ,
uint  ,
S_IRUGO   
)
MODULE_PARM_DESC ( eb  ,
"eraseblock number within the selected MTD device  
)
MODULE_PARM_DESC ( ebcnt  ,
"number of consecutive eraseblocks to torture"   
)
MODULE_PARM_DESC ( pgcnt  ,
"number of pages per eraseblock to torture (0 => all)"   
)
MODULE_PARM_DESC ( dev  ,
"MTD device number to use"   
)
MODULE_PARM_DESC ( gran  ,
"how often the status information should be printed"   
)
MODULE_PARM_DESC ( check  ,
"if the written data should be checked"   
)
MODULE_PARM_DESC ( cycles_count  ,
"how many erase cycles to do ""(infinite by default)"   
)