VFLUSH(9)
π VFLUSH(9) β like, the vnode flush era β¨
okay so bestie, welcome to VFLUSH(9), straight out of the Kernel Developer's Manual π this is the section-9 girlie who handles vnodes for a mount point, and honestly? she ate. no cap.
πΈ NAME πΈ
vflush β flush vnodes for a mount point π (yes that's the whole vibe: vnodes out, mount point clean, slay)
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/vnode.h>
int
vflush(struct mount *mp, int rootrefs, int flags, struct thread *td);
like, copy it exactly bestie, headers and all π«Ά iykyk
π DESCRIPTION π
so the vflush() function removes any vnodes in the vnode table that belong to the given mount structure. literally just snatching them out of the table. main character energy π₯
its arguments are β brace yourself, there's four:
mpβ the mount point whose vnodes should be removed. like, the home base πrootrefsβ the number of references expected on the root vnode.vrele(9)will be invoked on the root vnoderootrefstimes. so if you say 3, it's gettingvrele(9)'d 3 times, periodt πflagsβ the flags indicating how vnodes should be handled. there's three of them and they're all lowkey important:FORCECLOSEβ if set, busy vnodes will be forcibly closed. yeah. forcibly. π don't say i didn't warn you.SKIPSYSTEMβ if set, vnodes with theVV_SYSTEMflag set will be skipped. she's not getting involved πWRITECLOSEβ if set, only regular files currently opened for writing will be removed. picky queen π
tdβ the calling thread. the one doing the calling, obviously π¦
β RETURN VALUES β
a value of 0 is returned if the flush is successful π otherwise, EBUSY will be returned π that's it, that's the whole return story, ngl.
π SEE ALSO π
go read those too, bestie, they're literally in the same friend group π
π AUTHORS π
this manual page was written by Chad David <davidc@acns.ab.ca>. ty king π«Ά
and that's the whole page fr fr β brought to you by Debian, dated November 21, 2001 π a vintage icon, we stan. bye bestie, go flush those vnodes β¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms