Adding a non-blocking erase func
Hello,
Say I wanted to write another erase function that's ioctl callable. This function would be non-blocking.
Would it be good to:
1. add another define "MEMERASE_NDELAY,"
2. Go into the function mtd_ioctl, and add a case for MEMERASE_NDELAY.
3. The case for MEMERASE_NDELAY
would be a copy of MEMERASE except with the wait_queue stuff taken out.
Would this be a simple task (in your opinion) or would that be one of those things that would be tricky to debug and get working?
Thanks,
Derek.