NAND write buffering

Josh Boyer jwboyer at
Mon Dec 12 10:37:40 EST 2005

On 12/12/05, Bernhard Priewasser <priewasser at> wrote:
> When is NAND wbuf flushed?
> sync()


> fsync()


> fflush()?

Not necessarily.  From the fflush man page:

"Note that fflush() only flushes the user space buffers provided by
the C library.  To ensure that the data is physically stored on disk
the kernel buffers must be flushed too, e.g. with sync(2) or

> fclose()?

Not necessarily.  See the man page in the NOTES section.  It says the
same as fflush.


More information about the linux-mtd mailing list