Messages in this thread |  | | | From | (H. Peter Anvin) | | Subject | Re: msync() needed before munmap() when writing to shared mapping? | | Date | Sat, 17 Apr 2004 20:23:21 +0000 (UTC) |
| |
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/
|  |