[lkml]   [2004]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: msync() needed before munmap() when writing to shared mapping?
Followup to:  <>
By author: Jamie Lokier <>
In newsgroup:
> > munmap() and fsync() or msync() will flush it to disk; there is no
> > reason munmap() should unless perhaps the file was opened O_SYNC.
> That was talking about flushing data all the way to disk. The
> implication of hpa's response is that munmap() does propagate the
> dirty bits from the page table to the file. That is the obvious
> behaviour, and what I've always assumed.

Obvious behaviour, and required by POSIX.

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

 \ /
  Last update: 2005-03-22 14:02    [W:0.042 / U:0.348 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site