lkml.org 
[lkml]   [2003]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectmmap(MAP_PRIVATE) question
From
Date
Hi all,

From the mmap(2) manpage it says:

MAP_PRIVATE
Create a private copy-on-write mapping. Stores to the region do not
affect the original file. It is unspecified whether changes made
to the file after the mmap call are visible in the mapped region.

What is linux behaivour in this area? I am guessing if the page is
modified between the call to mmap() and fault-in then the modified copy
is seen by the application? But what about modifications after the page
is already in page-cache?

Thanks.

--
Gianni Tedesco <giannit@securewave.com>

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

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.039 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site