VFLUSHBUF(9)
π¦ NAME π¦
okay bestie, welcome to VFLUSHBUF(9) from the Kernel Developerβs Manual β¨ this page is literally about vflushbuf β flush dirty vnode buffers to disk π
no cap.
π SYNOPSIS π
#include <sys/param.h>
#include <sys/vnode.h>
void
vflushbuf(struct vnode *vp, int sync);
πΈ DESCRIPTION πΈ
so vflushbuf() is the function that flushes all dirty buffers associated with the vnode vp to the disk π«Ά.
hereβs the vibe check on the sync argument:
- if
syncis zero, the writes to the disk are asynchronous, andvflushbuf()returns immediately πββοΈπ¨ - otherwise, the writes are synchronous, and when
vflushbuf()returns, all the disk blocks associated with the vnode have been properly synchronized with the in-core buffers β
thatβs the whole plot, and it ate π
π₯ SEE ALSO π₯
π HISTORY π
this iconic document first appeared in OpenBSD 3.7 π
and thatβs the page, bestie π«Ά brought to you by Debian, dated June 4, 2013 β periodt π
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms