VFS_SYNC(9) | Kernel Developer's Manual | VFS_SYNC(9) |
VFS_SYNC
— flush
unwritten data
#include
<sys/param.h>
#include <sys/mount.h>
#include <sys/vnode.h>
int
VFS_SYNC
(struct
mount *mp, int
waitfor);
The
VFS_SYNC
()
macro writes out all unwritten data in the file system mounted as
mp.
The arguments it expects are:
MNT_WAIT
MNT_NOWAIT
MNT_LAZY
The
VFS_SYNC
()
macro calls the vfs_sync method of the file system,
which normally calls VOP_FSYNC(9) for all the vnodes in
the file system.
This manual page was written by Doug Rabson.
May 23, 2009 | Debian |