sync(2)
Name
sync − update super-block
Syntax
void sync()
Description
The sync system call causes all information in memory that should be on disk to be written out. This includes modified superblocks, modified i-nodes, and delayed block I/O.
Programs that examine a file system, for example, fsck or df, use the sync system call. The writing, although scheduled, is not necessarily complete upon return from sync.