Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

vgone — prepare a vnode for reuse

Authors

       This manual page was written by Chad David <davidc@acns.ab.ca>.

Debian                                          November 12, 2010                                       VGONE(9)

Description

       The  vgone()  function  prepares the vnode to be destroyed.  The preparation includes the cleaning of all
       file system specific data and the removal from its mount point vnode list.

       If the vnode has a v_usecount of zero, and its VI_DOOMED flag is not set, it is moved to the head of  the
       free list as in most cases the vnode is about to be reused, or its file system is being unmounted.

       The vgone() function takes an exclusively locked vnode, and returns with the vnode exclusively locked.

Name

       vgone — prepare a vnode for reuse

See Also

vnode(9)

Synopsis

#include<sys/param.h>#include<sys/vnode.h>voidvgone(structvnode*vp);

See Also