OpenBSD manual page server

Manual Page Search Parameters

VGONE(9) Kernel Developer's Manual VGONE(9)

vgone, vgonel
prepare a vnode for reuse

#include <sys/param.h>
#include <sys/vnode.h>

void
vgone(struct vnode *vp);

void
vgonel(struct vnode *vp, struct proc *p);

vgone() and vgonel() prepare a vnode for reuse by another file system. The preparation includes the cleaning of all file system specific data and the removal from its mount point vnode list.

The difference between vgone() and vgonel() is that vgone() locks the vnode interlock and then calls vgonel() while vgonel() expects the interlock to already be locked.

vclean(9), vnode(9), vrecycle(9)

This man page was originally written by Chad David <davidc@acns.ab.ca> for FreeBSD.
July 17, 2013 OpenBSD-current