Query: vput
OS: centos
Section: 9
Links: centos man pages all man pages
Forums: unix linux community forum categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
VRELE(9) BSD Kernel Developer's Manual VRELE(9)NAMEvput, vrele, vunref -- decrement the use count for a vnodeSYNOPSIS#include <sys/param.h> #include <sys/vnode.h> void vput(struct vnode *vp); void vrele(struct vnode *vp); void vunref(struct vnode *vp);DESCRIPTIONDecrement the v_usecount field of a vnode. vp the vnode to decrement The vrele() function takes an unlocked vnode and returns with the vnode unlocked. The vput() function should be given a locked vnode as argument, the vnode is unlocked after the function returned. The vput() is opera- tionally equivalent to calling VOP_UNLOCK(9) followed by vrele(9), with less overhead. The vunref() function takes a locked vnode as argument, and returns with the vnode locked. Any code in the system which signified its use of a vnode by usecount should call one of the listed function to decrement use counter. If the v_usecount field of the non-doomed vnode reaches zero, then it will be inactivated and placed on the free list. Since the functions might need to call VOPs for the vnode, the Giant mutex should be conditionally locked around the call. The hold count for the vnode is always greater or equal to the usecount. Non-forced unmount fails when mount point owns a vnode that has non-zero usecount, see vflush(9).SEE ALSOvget(9), vnode(9), vref(9), vrefcnt(9)AUTHORSThis manual page was written by Doug Rabson and Konstantin Belousov.BSDNovember 20, 2010 BSD
Related Man Pages |
---|
vput(9) - freebsd |
vput(9) - debian |
vrele(9) - freebsd |
vput(9) - linux |
vput(9) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Compilation on SunOs5.7 using gcc 3.3.5 |
vnode file access |