linux/drivers/mtd/tests/stresstest.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2006-2008 Nokia Corporation
 *
 * Test random reads, writes and erases on MTD device.
 *
 * Author: Adrian Hunter <[email protected]>
 */

#define pr_fmt(fmt)

#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>
#include <linux/vmalloc.h>
#include <linux/random.h>

#include "mtd_test.h"

static int dev =;
module_param(dev, int, S_IRUGO);
MODULE_PARM_DESC();

static int count =;
module_param(count, int, S_IRUGO);
MODULE_PARM_DESC();

static struct mtd_info *mtd;
static unsigned char *writebuf;
static unsigned char *readbuf;
static unsigned char *bbt;
static int *offsets;

static int pgsize;
static int bufsize;
static int ebcnt;
static int pgcnt;

static int rand_eb(void)
{}

static int rand_offs(void)
{}

static int rand_len(int offs)
{}

static int do_read(void)
{}

static int do_write(void)
{}

static int do_operation(void)
{}

static int __init mtd_stresstest_init(void)
{}
module_init(mtd_stresstest_init);

static void __exit mtd_stresstest_exit(void)
{}
module_exit(mtd_stresstest_exit);

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();