VGONE(9)
π VGONE(9) β the vibe is "let's recycle this vnode" π
from the Kernel Developer's Manual β¨ manual section 9, bestie
πΈ NAME πΈ
vgone β get a vnode all dolled up and ready to be reused π
β¨ SYNOPSIS β¨
#include <sys/param.h>
#include <sys/vnode.h>
void
vgone(struct vnode *vp);
π¦ DESCRIPTION π¦
okay so. The vgone() function is literally prepping a vnode for destruction π and that prep is a whole routine, not just a vibe check. It includes:
- cleaning up all the file system specific data π§Ό
- removing the vnode from its mount point vnode list π
and here's the juicy part: if the vnode has a v_usecount of zero, and its VI_DOOMED flag is not set, then it gets moved to the head of the free list π β because in most cases the vnode is about to be reused, or its file system is being unmounted. it's giving "recycling era" β»οΈ
Also, no cap: vgone() takes an exclusively locked vnode, and returns with the vnode exclusively locked. lock in, lock out, periodt π
π«Ά SEE ALSO π«Ά
π AUTHORS π
This manual page was written by Chad David <davidc@acns.ab.ca> π
k bye bestie, this one came from Debian and is dated November 12, 2010 β love that for us, mwah π β¨
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms