diff options
Diffstat (limited to 'share/man/man9/vflushbuf.9')
-rw-r--r-- | share/man/man9/vflushbuf.9 | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/share/man/man9/vflushbuf.9 b/share/man/man9/vflushbuf.9 new file mode 100644 index 00000000000..3fe53688753 --- /dev/null +++ b/share/man/man9/vflushbuf.9 @@ -0,0 +1,33 @@ +.\" $OpenBSD: vflushbuf.9,v 1.1 2004/09/19 23:19:18 jaredy Exp $ +.\" Written by Jared Yanovich +.\" This file belongs to the public domain. +.Dd September 17, 2004 +.Dt VFLUSHBUF 9 +.Os +.Sh NAME +.Nm vflushbuf +.Nd flush dirty vnode buffers to disk +.Sh SYNOPSIS +.Fd #include <sys/param.h> +.Fd #include <sys/vnode.h> +.Ft void +.Fn vflushbuf "struct vnode *vp" "int sync" +.Sh DESCRIPTION +The +.Fn vflushbuf +function flushes all dirty buffers associated with the vnode +.Fa vp +to the disk. +If the +.Fa sync +argument is zero, writes to the disk will be asynchronous and +.Fn vflushbuf +returns immediately; otherwise, writes will be synchronous and all +disk blocks associated with the vnode will have been properly +synchronized with the in-core buffers upon return. +.Sh SEE ALSO +.Xr vinvalbuf 9 , +.Xr vnode 9 +.Sh HISTORY +This document first appeared in +.Ox 3.7 . |