VGONE(9)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

🌸 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