xref: /openbsd-src/share/man/man9/vflushbuf.9 (revision 43003dfe3ad45d1698bed8a37f2b0f5b14f20d4f)
1.\"	$OpenBSD: vflushbuf.9,v 1.2 2007/05/31 19:20:01 jmc Exp $
2.\" Written by Jared Yanovich
3.\" This file belongs to the public domain.
4.Dd $Mdocdate: May 31 2007 $
5.Dt VFLUSHBUF 9
6.Os
7.Sh NAME
8.Nm vflushbuf
9.Nd flush dirty vnode buffers to disk
10.Sh SYNOPSIS
11.Fd #include <sys/param.h>
12.Fd #include <sys/vnode.h>
13.Ft void
14.Fn vflushbuf "struct vnode *vp" "int sync"
15.Sh DESCRIPTION
16The
17.Fn vflushbuf
18function flushes all dirty buffers associated with the vnode
19.Fa vp
20to the disk.
21If the
22.Fa sync
23argument is zero, writes to the disk will be asynchronous and
24.Fn vflushbuf
25returns immediately; otherwise, writes will be synchronous and all
26disk blocks associated with the vnode will have been properly
27synchronized with the in-core buffers upon return.
28.Sh SEE ALSO
29.Xr vinvalbuf 9 ,
30.Xr vnode 9
31.Sh HISTORY
32This document first appeared in
33.Ox 3.7 .
34