* Purpose of sync() function
@ 2001-06-11 15:17 Frederic Giasson
2001-06-12 8:43 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Frederic Giasson @ 2001-06-11 15:17 UTC (permalink / raw)
To: linux-mtd@lists.infrared.org
Hi all,
I am working on a device driver for a flash chip that is not
currently supported by MTD current code. My driver works fine, I am also
able to mount a jffs2 filesystem on it. 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^
Thanks in advance!
Frédéric Giasson
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Purpose of sync() function
2001-06-11 15:17 Purpose of sync() function Frederic Giasson
@ 2001-06-12 8:43 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-06-12 8:43 UTC (permalink / raw)
To: Frederic Giasson; +Cc: linux-mtd@lists.infrared.org
fgiasson@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-12 8:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-11 15:17 Purpose of sync() function Frederic Giasson
2001-06-12 8:43 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox