BSD 4_4 development
[unix-history] / usr / share / man / cat2 / msync.0
MSYNC(2) BSD Programmer's Manual MSYNC(2)
N\bNA\bAM\bME\bE
m\bms\bsy\byn\bnc\bc - synchronize a mapped region
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
m\bms\bsy\byn\bnc\bc(_\bc_\ba_\bd_\bd_\br_\b__\bt _\ba_\bd_\bd_\br, _\bi_\bn_\bt _\bl_\be_\bn);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The m\bms\bsy\byn\bnc\bc() system call writes any modified pages back to the filesystem
and updates the file modification time. If _\bl_\be_\bn is 0, all modified pages
within the region containing _\ba_\bd_\bd_\br will be flushed; if _\bl_\be_\bn is non-zero,
only the pages containing _\ba_\bd_\bd_\br and _\bl_\be_\bn succeeding locations will be exam-
ined. Any required synchronization of memory caches will also take place
at this time. Filesystem operations on a file that is mapped for shared
modifications are unpredictable except after an m\bms\bsy\byn\bnc\bc().
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
madvise(2), munmap(2), mprotect(2), mincore(2)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
The m\bms\bsy\byn\bnc\bc() function first appeared in 4.4BSD.
4.4BSD June 9, 1993 1