Copyright (c) 1980, 1991, 1993 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the fol...
NAMEsync - schedule file system updates
SYNOPSISIn unistd.h Ft void Fn sync void
DESCRIPTIONThe Fn sync system call forces a write of dirty (modified) buffers in the block buffer cache out to disk. The kernel keeps this information in core to reduce the number of disk I/O transfers required by the system. As information in the cache is lost after a system crash, a Fn sync system call is issued frequently by the kernel process syncer(4) (about every 30 seconds).
The fsync(2) system call may be used to synchronize individual file descriptor attributes.