3 .\" Copyright (c) 1996 Doug Rabson
4 .\" Copyright (c) 2010 Konstantin Belousov <kib@FreeBSD.org>
6 .\" All rights reserved.
8 .\" This program is free software.
10 .\" Redistribution and use in source and binary forms, with or without
11 .\" modification, are permitted provided that the following conditions
13 .\" 1. Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
15 .\" 2. Redistributions in binary form must reproduce the above copyright
16 .\" notice, this list of conditions and the following disclaimer in the
17 .\" documentation and/or other materials provided with the distribution.
19 .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
20 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 .\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 .Nd decrement the use count for a vnode
44 .Fn vput "struct vnode *vp"
46 .Fn vrele "struct vnode *vp"
48 .Fn vunref "struct vnode *vp"
55 the vnode to decrement
60 function takes an unlocked vnode and returns with the vnode unlocked.
64 function should be given a locked vnode as argument, the vnode is unlocked
65 after the function returned.
68 is operationally equivalent to calling
76 function takes a locked vnode as argument, and returns with the vnode locked.
78 Any code in the system which signified its use of a vnode by usecount
79 should call one of the listed function to decrement use counter.
82 field of the non-doomed vnode reaches zero, then it will be inactivated
83 and placed on the free list.
87 function may lock the vnode.
88 All three functions may sleep.
90 The hold count for the vnode is always greater or equal to the usecount.
91 Non-forced unmount fails when mount point owns a vnode that has non-zero
100 This manual page was written by
103 .An Konstantin Belousov .