Re: mmap() page swapping location?

From: Juan J. Quintela (
Date: Wed Aug 02 2000 - 15:20:09 EST

>>>>> "chris" == Chris Quinn <> writes:


chris> I tested this with a trivial program under 2.2.12-20/gcc 2.91.66,
chris> and where MAP_PRIVATE was exchanged for MAP_SHARED the result was different! ie. after an msync(), munmap() and then close(), the accessed
chris> file remained unchanged in the former case.
chris> How sure are you?!

Sorry, I was corrected, MAP_PRIVATE means that you never write again
to the file.

Later, Juan.

In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:10 EST