VCLEAN(9)
๐ VCLEAN(9) โ a Kernel Developerโs Manual moment ๐
okay bestie, this page is from the Kernel Developerโs Manual, and itโs all about vclean โ the function that disassociates the underlying file system from a vnode like โwe are SO done hereโ โจ
๐ธ NAME ๐ธ
vcleanโ disassociate the underlying file system from a vnode.
โจ SYNOPSIS โจ
#include <sys/param.h>
#include <sys/vnode.h>
void
vclean(struct vnode *vp, int flags, struct proc *p);
๐ซถ DESCRIPTION ๐ซถ
The vclean() function clears any VM and buffer data associated with the vnode vp and reclaims it from the underlying file system. Literally the โclean up your roomโ of vnode functions, but make it kernel-level ๐
Its arguments are:
vpโ the vnode to be cleaned. main character vnode fr.flagsโ the flags indicating how the vnode should be handled.DOCLOSEโ if this flag is set,vclean()will callvinvalbuf(9)on the vnode. If the vnode is active, it will be closed and inactivated in the underlying file system. no cap, thatโs the whole flag.
pโ the process responsible for this call. like, whoโs holding the clipboard on this one.
On exit, the v_tag field of the vnode will be set to VT_NON, and if the vnode was active, it will be placed on the vnode free list. Slay, itโs been reclaimed and filed away โจ
๐ฅ SEE ALSO ๐ฅ
๐ HISTORY ๐
This man page was originally written for OpenBSD. iconic origin story, no notes ๐
Cute little sign-off: this pageโs source/version is Debian, and the date is November 14, 2020 โ mwah ๐
๐ฆ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2002 Peter Werner
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms