vop_inactive(9) linux man page | unix.com

Man Page: vop_inactive

Operating Environment: linux

Section: 9

VOP_INACTIVE(9) 					   BSD Kernel Developer's Manual					   VOP_INACTIVE(9)

NAME
VOP_INACTIVE, VOP_RECLAIM -- reclaim file system resources for a vnode
SYNOPSIS
#include <sys/param.h> #include <sys/vnode.h> int VOP_INACTIVE(struct vnode *vp, struct thread *td); int VOP_RECLAIM(struct vnode *vp, struct thread *td);
DESCRIPTION
The arguments are: vp The vnode being reclaimed. VOP_INACTIVE() is called when the kernel is no longer using the vnode. 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 for 'open but deleted' files. 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 VOP_INACTIVE, the vp will be locked on entry. Your VOP_INACTIVE code must unlock the vp prior to returning. For VOP_RECLAIM, the vp will not be locked on entry and should be left unlocked on return.
SEE ALSO
vnode(9)
AUTHORS
This manual page was written by Doug Rabson.
BSD
July 24, 1996 BSD
Related Man Pages
vunref(9) - freebsd
vrele(9) - opensolaris
vrele(9) - centos
vput(9) - php
vrele(9) - minix
Similar Topics in the Unix Linux Community
Featured Books and Articles by Active Forum Members
User Guide: Posting in the Emergency Forum
Rules for Homework &amp; Coursework Questions Forum
Answers to Recently Asked Questions about UNIX.COM
YouTube: How to Use Code Tags and Format Posts @UNIX.com