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

  man pages->FreeBSD man pages -> VFS_SYNC (9)              



NAME    [Toc]    [Back]

     VFS_SYNC -- flush unwritten data

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/mount.h>
     #include <sys/vnode.h>

     VFS_SYNC(struct mount *mp, int waitfor, struct ucred *cred,
	 struct thread *td);

DESCRIPTION    [Toc]    [Back]

     This writes out all unwritten data in a file system.

     Its arguments are:

     mp       The file system.

     waitfor  Whether the function should wait for I/O to complete.  Possible
	      values are:

	      MNT_WAIT	  synchronously wait for I/O to complete

	      MNT_NOWAIT  start all I/O, but do not wait for it

	      MNT_LAZY	  push data not written by file system syncer

     cred     The caller's credentials.

     td       The calling thread.

     This would normally call VOP_FSYNC(9) for all the vnodes in the file system.

SEE ALSO    [Toc]    [Back]

     fsync(2), sync(2), VFS(9), vnode(9), VOP_FSYNC(9)

AUTHORS    [Toc]    [Back]

     This manual page was written by Doug Rabson.

FreeBSD 5.2.1			 July 24, 1996			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
tcflush Tru64 Flush nontransmitted output data or nonread input data
cacheflush IRIX flush contents of instruction and/or data cache
cacheflush Linux flush contents of instruction and/or data cache
bdflush Linux start, flush, or tune buffer-dirty-flush daemon
krs_flush HP-UX flush kernel registry services data to disk
sync2 Tru64 Flush file system metadata and data from memory buffers to disk
sync Tru64 Flush file system metadata and data from memory buffers to disk.
arm_sync_icache NetBSD clean the cpu data cache and flush the cpu instruction cache
xfs_chver IRIX change the version of a filesystem to enable the extent unwritten version.
fflush Linux flush a stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service