*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> sync (2)              



NAME    [Toc]    [Back]

       sync - commit buffer cache to disk.

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       int sync(void);

DESCRIPTION    [Toc]    [Back]

       sync first commits inodes to buffers, and then buffers to disk.

RETURN VALUE    [Toc]    [Back]

       sync always returns 0.

CONFORMING TO    [Toc]    [Back]

       SVr4, SVID, X/OPEN, BSD 4.3

BUGS    [Toc]    [Back]

       According  to the standard specification (e.g., SVID), sync() schedules
       the writes, but may return before the actual writing is done.  However,
       since  version  1.3.20  Linux does actually wait.  (This still does not
       guarantee data integrity: modern disks have large caches.)

SEE ALSO    [Toc]    [Back]

       bdflush(2), fsync(2), fdatasync(2), update(8), sync(8)

Linux 1.3.88			  1995-04-15			       SYNC(2)
[ Back ]
 Similar pages
Name OS Title
vxfs_bc_bufhwm HP-UX VxFS buffer cache high water mark(determines the VxFS buffer cache size)
bufview IRIX file system buffer cache activity monitor
sendfile_max HP-UX maximum number of Buffer Cache Pages used by sendfile
sync OpenBSD force completion of pending disk writes (flush cache)
sync FreeBSD force completion of pending disk writes (flush cache)
arm_sync_icache NetBSD clean the cpu data cache and flush the cpu instruction cache
disklabel Tru64 Reads and writes a disk pack label and formats disk partitions
getgconfig IRIX gets the size of a buffer or a state in the current buffer configuration
createlabel Tru64 creates a disk label structure for a disk device
sync OpenBSD synchronize disk block in-core status with that on disk
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service