From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dell-paw-3.cambridge.redhat.com ([195.224.55.237] helo=passion.cambridge.redhat.com) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 159jgp-0000Sy-00 for ; Tue, 12 Jun 2001 09:38:19 +0100 From: David Woodhouse In-Reply-To: References: To: Frederic Giasson Cc: "linux-mtd@lists.infrared.org" Subject: Re: Purpose of sync() function Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 12 Jun 2001 09:43:43 +0100 Message-ID: <6352.992335423@redhat.com> Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: 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