logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

VOP_INACTIVE, VOP_RECLAIM — reclaim file system resources for a vnode

Authors

       This manual page was written by Doug Rabson.

Debian                                           March 15, 2019                                  VOP_INACTIVE(9)

Description

       The arguments are:

       vp  The vnode being reclaimed.

       VOP_INACTIVE()  is  usually  called  when  the kernel is no longer using the vnode.  However, there is no
       guarantee that it will be called at all, for example if the last reference was dropped  while  the  vnode
       lock  could  not  be  upgraded  to  exclusive  without sleeping.  This may be because the reference count
       reaches zero or it may be that the file system is being forcibly unmounted while there  are  open  files.
       It can be used to reclaim space on the last close of an ‘open but deleted’ file.

       VOP_RECLAIM()  is  called  when  a  vnode  is  being reused for a different file system.  Any file system
       specific resources associated with the vnode should be freed.

Locks

       For both VOP_INACTIVE() and VOP_RECLAIM(), the vp will be exclusively locked on entry, and must  be  left
       exclusively locked on return.

Name

       VOP_INACTIVE, VOP_RECLAIM — reclaim file system resources for a vnode

See Also

vnode(9)

Synopsis

#include<sys/param.h>#include<sys/vnode.h>intVOP_INACTIVE(structvnode*vp, structthread*td);

       intVOP_RECLAIM(structvnode*vp, structthread*td);

See Also