xref: /openbsd-src/share/man/man9/vflushbuf.9 (revision dddd2645fd99df9cea4bd12d510ca892fff2f643)
1*dddd2645Sschwarze.\"	$OpenBSD: vflushbuf.9,v 1.3 2013/06/04 19:27:16 schwarze Exp $
2e8b7e239Sjaredy.\" Written by Jared Yanovich
3e8b7e239Sjaredy.\" This file belongs to the public domain.
4*dddd2645Sschwarze.Dd $Mdocdate: June 4 2013 $
5e8b7e239Sjaredy.Dt VFLUSHBUF 9
6e8b7e239Sjaredy.Os
7e8b7e239Sjaredy.Sh NAME
8e8b7e239Sjaredy.Nm vflushbuf
9e8b7e239Sjaredy.Nd flush dirty vnode buffers to disk
10e8b7e239Sjaredy.Sh SYNOPSIS
11*dddd2645Sschwarze.In sys/param.h
12*dddd2645Sschwarze.In sys/vnode.h
13e8b7e239Sjaredy.Ft void
14e8b7e239Sjaredy.Fn vflushbuf "struct vnode *vp" "int sync"
15e8b7e239Sjaredy.Sh DESCRIPTION
16e8b7e239SjaredyThe
17e8b7e239Sjaredy.Fn vflushbuf
18e8b7e239Sjaredyfunction flushes all dirty buffers associated with the vnode
19e8b7e239Sjaredy.Fa vp
20e8b7e239Sjaredyto the disk.
21e8b7e239SjaredyIf the
22e8b7e239Sjaredy.Fa sync
23e8b7e239Sjaredyargument is zero, writes to the disk will be asynchronous and
24e8b7e239Sjaredy.Fn vflushbuf
25e8b7e239Sjaredyreturns immediately; otherwise, writes will be synchronous and all
26e8b7e239Sjaredydisk blocks associated with the vnode will have been properly
27e8b7e239Sjaredysynchronized with the in-core buffers upon return.
28e8b7e239Sjaredy.Sh SEE ALSO
29e8b7e239Sjaredy.Xr vinvalbuf 9 ,
30e8b7e239Sjaredy.Xr vnode 9
31e8b7e239Sjaredy.Sh HISTORY
32e8b7e239SjaredyThis document first appeared in
33e8b7e239Sjaredy.Ox 3.7 .
34