*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> vrecycle (9)              
Title
Content
Arch
Section
 

VRECYCLE(9)

Contents


NAME    [Toc]    [Back]

     vrecycle - recycle a vnode if its reference count is zero

SYNOPSIS    [Toc]    [Back]

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

     int
     vrecycle(struct vnode  *vp,  struct  simplelock  *inter_lkp,
struct proc *p);

DESCRIPTION    [Toc]    [Back]

     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).

RETURN VALUES    [Toc]    [Back]

     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.

SEE ALSO    [Toc]    [Back]

      
      
     vgonel(9), vnode(9)

HISTORY    [Toc]    [Back]

     This man page was originally written for OpenBSD.

OpenBSD      3.6                        February     18,     2002
[ Back ]
 Similar pages
Name OS Title
vput OpenBSD decrement the reference count for a vnode and unlock it
BUF_REFCNT FreeBSD returns the reference count on a buffer's lock
vref OpenBSD increment the use count for a vnode
vref FreeBSD increment the use count for a vnode
vrele FreeBSD decrement the use count for a vnode
vrele OpenBSD decrement the use count for a vnode
VREF FreeBSD increment the use count for a vnode
vput FreeBSD decrement the use count for a vnode and unlock it
mmroff FreeBSD reference preprocessor
coder HP-UX HP EUC-CNS code reference utility
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service