xref: /openbsd/share/man/man9/vflushbuf.9 (revision 91f110e0)
1.\"	$OpenBSD: vflushbuf.9,v 1.3 2013/06/04 19:27:16 schwarze Exp $
2.\" Written by Jared Yanovich
3.\" This file belongs to the public domain.
4.Dd $Mdocdate: June 4 2013 $
5.Dt VFLUSHBUF 9
6.Os
7.Sh NAME
8.Nm vflushbuf
9.Nd flush dirty vnode buffers to disk
10.Sh SYNOPSIS
11.In sys/param.h
12.In 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