SYNC(2)

NAME
sync - commit buffer cache to disk.

SYNOPSIS
#include <unistd.h>
int sync(void);

DESCRIPTION
sync() first commits inodes to buffers, and then buffers to disk. It always returns 0.

FILES
linux/fs/buffer.c
/usr/include/linux/sys.h
/usr/include/unistd.h