Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ msync(2) — Sprite KS.390

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mmap(2)

mlock(2)

munlock(2)

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

mmap(2), mlock(2), munlock(2)

Sprite version 1.0  —  November 19, 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026