VFLUSHBUF(9)

πŸ“¦ in nixpkgs unstable

πŸ¦‹ 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 sync is zero, the writes to the disk are asynchronous, and vflushbuf() 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