summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorJared Yanovich <jaredy@cvs.openbsd.org>2004-09-19 23:19:19 +0000
committerJared Yanovich <jaredy@cvs.openbsd.org>2004-09-19 23:19:19 +0000
commit83bd84d49d31107af0083d6221175ef34ffdc5f2 (patch)
tree84c5a9bd4b5adf6417dff205fce7d82de2685033 /share/man
parent4c8f613f9cac508afb274214a60e0e29eebd3980 (diff)
add man pages for vflushbuf() and vwakeup().
ok and help pedro and jmc, ok tedu
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/vflushbuf.933
-rw-r--r--share/man/man9/vwakeup.948
2 files changed, 81 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 .
diff --git a/share/man/man9/vwakeup.9 b/share/man/man9/vwakeup.9
new file mode 100644
index 00000000000..bd9271e5863
--- /dev/null
+++ b/share/man/man9/vwakeup.9
@@ -0,0 +1,48 @@
+.\" $OpenBSD: vwakeup.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 VWAKEUP 9
+.Os
+.Sh NAME
+.Nm vwakeup
+.Nd "update outstanding I/O count and do wakeup on a vnode"
+.Sh SYNOPSIS
+.Fd #include <sys/param.h>
+.Fd #include <sys/vnode.h>
+.Ft void
+.Fn vwakeup "struct vnode *vp"
+.Sh DESCRIPTION
+The
+.Fn vwakeup
+function updates the number of outstanding I/O operations on the target
+vnode, stored in its
+.Va v_numoutput
+field.
+If the target vnode has the
+.Dv VBIOWAIT
+flag set in its
+.Va v_bioflag
+field and has no outstanding I/O operations remaining, a
+.Xr wakeup 9
+is performed as well.
+.Pp
+The
+.Fn vwakeup
+function must be called at
+.Xr splbio 9 .
+.Sh SEE ALSO
+.Xr panic 9 ,
+.Xr splbio 9 ,
+.Xr vnode 9 ,
+.Xr vwaitforio 9 ,
+.Xr wakeup 9
+.Sh CAVEATS
+Calling
+.Fn vwakeup
+more times than the number of outstanding I/O operations will cause the
+system to
+.Xr panic 9 .
+.Sh HISTORY
+This document first appeared in
+.Ox 3.7 .