Purpose of sync() function

David Woodhouse dwmw2 at infradead.org
Tue Jun 12 04:43:43 EDT 2001


fgiasson at mediatrix.com said:
>   I have not implemented the sync() function, because looking at
> others drivers it doest not seem to do anything useful.  Can anyone
> tell me if I am right or wrong, and what should be the purpose of the
> sync function^ 

The sync function should wait for all pending erases to complete. As 
nobody's actually implemented asynchronous erases yet - all the erase 
functions block and call the callback before returning, this is a NOP in 
all current drivers.

--
dwmw2






More information about the linux-mtd mailing list