#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.
|
| 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") |
|
#define PRINT_PREF KERN_INFO "mtd_torturetest: " |
MODULE_AUTHOR |
( |
"Artem |
Bityutskiy, |
|
|
Jarkko |
Lavinen, |
|
|
Adrian Hunter" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"Eraseblock torturing module" |
| ) |
|
module_exit |
( |
tort_exit |
| ) |
|
module_init |
( |
tort_init |
| ) |
|
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 |
( |
gran |
, |
|
|
"how often the status information should be printed" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
cycles_count |
, |
|
|
"how many erase cycles to do ""(infinite by default)" |
|
|
) |
| |