[PATCH v2 24/46] mtd: nandsim: Wire up NANDSIM_MODE_CACHEFILE ioctl mode

2016-09-21 Thread Daniel Walter
From: Richard Weinberger Allow the userspace control tool also to setup a cache file. In contrast to the cache_file module parameter the ioctl() only accepts a fd. So, userspace should hand in an fd pointing to a temp file. Signed-off-by: Richard Weinberger ---

[PATCH v2 24/46] mtd: nandsim: Wire up NANDSIM_MODE_CACHEFILE ioctl mode

2016-09-21 Thread Daniel Walter
From: Richard Weinberger Allow the userspace control tool also to setup a cache file. In contrast to the cache_file module parameter the ioctl() only accepts a fd. So, userspace should hand in an fd pointing to a temp file. Signed-off-by: Richard Weinberger --- drivers/mtd/nand/nandsim.c | 5