int msync(void *addr, size_t len, int flags);
addr must be a multiple
of the page size as returned by
For mappings to files, the
The flags argument is constructed from the bitwise inclusive OR of one or more of the following flags:
Perform asynchronous writes
Perform synchronous writes.
Invalidate cached data.
When MS_ASYNC is specified,
When MS_INVALIDATE is specified,
Is the address of the region from where data should be written to the permanent storage locations.
Is the number of bytes to be written to the permanent storage locations.
Is the bitwise inclusive OR of MS_ASYNC (or MS_SYNC) and MS_INVALIDATE.
If successful, the
The addr argument is not a multiple of the page size as returned by
The value in flags is invalid.
Addresses in the range [addr, addr + len] are invalid for the address space of a process, or specify one or more pages which are not mapped.
UNIX 98, with exceptions.
Windows does not distinguish the flags MS_SYNC and MS_ASYNC. The flag MS_INVALIDATE is ignored by the system.
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.