VWAITFORIO(9) BSD Kernel Manual VWAITFORIO(9)
vwaitforio - wait for all outstanding asynchronous writes
#include <sys/types.h> #include <sys/vnode.h> int vwaitforio(struct vnode *vp, int slpflag, char *wmesg, int slptimeo);
The vwaitforio() call sleeps until all asynchronous writes associated with the vnode vp finish. This is used by functions that need to make sure that the writes they initiated have completed. The vwaitforio() call sleeps at priority PRIBIO + 1 . The slpflag, wmesg, and slptimeo arguments indicate flags to be passed to tsleep(9). This function must be called at splbio(9). It may be important to ensure that no other process submits asynchronous writes while a process is waiting for I/O on this vnode. Otherwise, vwaitforio() may never return.
The vwaitforio() function returns 0 on success. See tsleep(9) for possi- ble error returns.
tsleep(9), vnode(9) MirOS BSD #10-current February 26, 2001 1
Generated on 2015-10-06 19:36:22 by $MirOS: src/scripts/roff2htm,v 1.80 2015/01/02 13:54:19 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002–2015 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.