[PATCH v2] mtd: torturetest: add the support for random data pattern
Ricard Wanderlof
ricard.wanderlof at axis.com
Tue Feb 5 04:48:19 EST 2013
On Tue, 5 Feb 2013, Huang Shijie wrote:
> Add a new module parameter 'pattern'. The meaning of the pattern is:
> (1) pattern == 0 for 55/AA pattern.
> (2) pattern < 0 for random pattern.
> (3) pattern > 0 for random pattern too, the value of the pattern is used
> as the seed for the random generator.
>
> Signed-off-by: Huang Shijie <b32955 at freescale.com>
> ...
> +static int pattern;
> +module_param(pattern, int, S_IRUGO);
> +MODULE_PARM_DESC(pattern, "0 for 55/AA pattern(default);"
> + "less then 0 for random pattern;"
> + "greater then 0 for random too, "
> + "the value of the pattern is the seed.");
^^^^^^^^ parameter ?
/Ricard
--
Ricard Wolf Wanderlöf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30
More information about the linux-mtd
mailing list