Q: Buffered vs Cached vs mmap()ed

Martijn van Oosterhout (s3100411@student.anu.edu.au)
Wed, 02 Jun 1999 01:23:15 +1000


Let me get this straight...

Buffered is when a program writes to a file and
it is buffered.

Cached is for when a program reads from a file.

Is that right?

Also, if one process has a file mmap()ed and another
process is writing to it, is the other process directly
writing to the same pages? Or are they kept in sync
some other way?

Basically, when you mmap() a file, are the actual pages
in the buffer cache be mapped into your address space?

Please CC any replies to me.

Martijn

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/