VGONE(9)
πΈ NAME πΈ β VGONE(9) bestie! π
okay so this is the VGONE(9) manual page, and vgone is literally the function whose whole main character job is to prepare a vnode for reuse β¨π
β¨ SYNOPSIS β¨
bestie, before you call it, include these headers and hereβs the exact signature π
#include <sys/param.h>
#include <sys/vnode.h>
void
vgone(struct vnode *vp);
π DESCRIPTION π
The vgone() function prepares the vnode to be destroyed. And no, thatβs not just vibes: the prep includes cleaning all file system specific data and removing the vnode from its mount point vnode list π§Ήβ¨
Hereβs the free-list tea: if the vnode has a v_usecount of zero, and its VIRF_DOOMED flag is not set, it gets moved to the head of the free list. Why? Because in most cases the vnode is about to be reused, or its file system is being unmounted. iykyk π¦
Locking detail, and itβs lowkey important: vgone() takes an exclusively locked vnode, and returns with the vnode exclusively locked. So it goes in locked and comes out locked, periodt ππ
π SEE ALSO π
vnode(9)β the related manual page, obviously π
π«Ά AUTHORS π«Ά
This manual page was written by Chad David <davidc@acns.ab.ca>. iconic behavior, ngl π
okay bye bestie, mwah π«Ά β source/version: Debian, date: December 8, 2019, manual: VGONE(9) π β¨
π¦ 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