xref: /openbsd/share/man/man9/vwakeup.9 (revision 09467b48)
1.\"	$OpenBSD: vwakeup.9,v 1.5 2013/08/14 06:32:33 jmc Exp $
2.\" Written by Jared Yanovich
3.\" This file belongs to the public domain.
4.Dd $Mdocdate: August 14 2013 $
5.Dt VWAKEUP 9
6.Os
7.Sh NAME
8.Nm vwakeup
9.Nd update outstanding I/O count and do wakeup on a vnode
10.Sh SYNOPSIS
11.In sys/param.h
12.In sys/vnode.h
13.Ft void
14.Fn vwakeup "struct vnode *vp"
15.Sh DESCRIPTION
16The
17.Fn vwakeup
18function updates the number of outstanding I/O operations on the target
19vnode, stored in its
20.Va v_numoutput
21field.
22If the target vnode has the
23.Dv VBIOWAIT
24flag set in its
25.Va v_bioflag
26field and has no outstanding I/O operations remaining, a
27.Xr wakeup 9
28is performed as well.
29.Pp
30The
31.Fn vwakeup
32function must be called at
33.Xr splbio 9 .
34.Sh SEE ALSO
35.Xr panic 9 ,
36.Xr splbio 9 ,
37.Xr vnode 9 ,
38.Xr vwaitforio 9 ,
39.Xr wakeup 9
40.Sh HISTORY
41This document first appeared in
42.Ox 3.7 .
43.Sh CAVEATS
44Calling
45.Fn vwakeup
46more times than the number of outstanding I/O operations will cause the
47system to
48.Xr panic 9 .
49