VRECYCLE(9) BSD Kernel Manual VRECYCLE(9)
vrecycle - recycle a vnode if its reference count is zero
#include <sys/param.h>
#include <sys/vnode.h>
int
vrecycle(struct vnode *vp, struct simplelock *inter_lkp, struct proc *p);
The vrecycle() function places the vnode vp on the free list using
vgonel(9) if its v_usecount field is zero. If v_usecount is non-zero, it
simply returns. If v_usecount is zero and an interlock inter_lkp was
passed, this interlock will be unlocked before calling vgonel(9).
vrecycle() will return 1 if the vnode was placed on the free list. It
will return 0 if the reference count was non-zero, and any lock passed in
inter_lkp will still be locked.
vgonel(9), vnode(9)
This man page was originally written for OpenBSD.
MirOS BSD #10-current February 18, 2002 1
Generated on 2013-04-27 00:20:00 by $MirOS: src/scripts/roff2htm,v 1.77 2013/01/01 20:49:09 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2013 The MirOS Project, Germany.
This product includes material
provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.