Skip to contentSkip to conversation

Adding a non-blocking erase func

DISCUSSION Derek Ross 1 participant 1 message Apr 5, 2002 Memory technology devices (MTD)

lore
Share & tools
lore

Derek Ross

author
#0 lore raw

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.