MSYNC — C Library Procedures
NAME
msync − sync pages to disk.
SYNOPSIS
int msync(addr, len)
caddr_t addr;
int len;
DESCRIPTION
Msync takes an address range and forces the pages containing the range to disk. The call will return after the pages are written to disk. After the call, the pages will no longer be valid in memory.
If the page is locked in memory it will be unlocked for the msync call. By using msync and mlock it is possible for the user to control the page-in/page-out process.
RETURN VALUE
Msync returns 0 if the call is successful. Otherwise they return -1 and an error code is returned in errno.
SEE ALSO
Sprite version 1.0 — November 19, 1989