lkml.org 
[lkml]   [2004]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: msync() needed before munmap() when writing to shared mapping?
Date
Followup to:  <20040416220223.GA27084@mail.shareable.org>
By author: Jamie Lokier <jamie@shareable.org>
In newsgroup: linux.dev.kernel
>
> > 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.

-hpa
-
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 14:02    [W:0.244 / U:0.044 seconds]
©2003-2014 Jasper Spaans. Advertise on this site