tail head cat sleep
QR code linking to this page

Manual Pages  — VHOLD


vhold – acquire/release a hold on a vnode



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

vhold(struct vnode *vp);

vholdl(struct vnode *vp);

vdrop(struct vnode *vp);

vdropl(struct vnode *vp);


The vhold() and vholdl() functions increment the v_holdcnt of the given vnode. If the vnode has already been added to the free list and is still referenced, it will be removed.

The vdrop() and vdropl() functions decrement the v_holdcnt of the vnode. If the holdcount is less than or equal to zero prior to calling vdrop() or vdropl(), the system will panic. If the vnode is no longer referenced, it will be freed.

vhold() and vdrop() lock the vnode interlock while vholdl() and vdropl() expect the interlock to already be held.




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

VHOLD (9) April 1, 2007

tail head cat sleep
QR code linking to this page

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology.
— The Unix Haters' handbook