1*73d4fc9bSjmc.\" $OpenBSD: vput.9,v 1.10 2013/08/14 06:32:32 jmc Exp $ 2ac0b1781Scsapuntz.\" 3ac0b1781Scsapuntz.\" Copyright (c) 1996 Doug Rabson 4ac0b1781Scsapuntz.\" 5ac0b1781Scsapuntz.\" All rights reserved. 6ac0b1781Scsapuntz.\" 7ac0b1781Scsapuntz.\" This program is free software. 8ac0b1781Scsapuntz.\" 9ac0b1781Scsapuntz.\" Redistribution and use in source and binary forms, with or without 10ac0b1781Scsapuntz.\" modification, are permitted provided that the following conditions 11ac0b1781Scsapuntz.\" are met: 12ac0b1781Scsapuntz.\" 1. Redistributions of source code must retain the above copyright 13ac0b1781Scsapuntz.\" notice, this list of conditions and the following disclaimer. 14ac0b1781Scsapuntz.\" 2. Redistributions in binary form must reproduce the above copyright 15ac0b1781Scsapuntz.\" notice, this list of conditions and the following disclaimer in the 16ac0b1781Scsapuntz.\" documentation and/or other materials provided with the distribution. 17ac0b1781Scsapuntz.\" 18ac0b1781Scsapuntz.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR 19ac0b1781Scsapuntz.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20ac0b1781Scsapuntz.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21ac0b1781Scsapuntz.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 22ac0b1781Scsapuntz.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23ac0b1781Scsapuntz.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24ac0b1781Scsapuntz.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25ac0b1781Scsapuntz.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26ac0b1781Scsapuntz.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27ac0b1781Scsapuntz.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28ac0b1781Scsapuntz.\" 29ac0b1781Scsapuntz.\" $FreeBSD: src/share/man/man9/vput.9,v 1.9 2001/10/01 16:09:25 ru Exp $ 30ac0b1781Scsapuntz.\" 31*73d4fc9bSjmc.Dd $Mdocdate: August 14 2013 $ 32ac0b1781Scsapuntz.Dt VPUT 9 33b00e7293Sjmc.Os 34ac0b1781Scsapuntz.Sh NAME 35ac0b1781Scsapuntz.Nm vput 36*73d4fc9bSjmc.Nd decrement the reference count for a vnode and unlock it 37ac0b1781Scsapuntz.Sh SYNOPSIS 38dddd2645Sschwarze.In sys/param.h 39dddd2645Sschwarze.In sys/vnode.h 40ac0b1781Scsapuntz.Ft void 41ac0b1781Scsapuntz.Fn vput "struct vnode *vp" 42ac0b1781Scsapuntz.Sh DESCRIPTION 43ac0b1781ScsapuntzDecrement the 44db5918d3Sjmc.Va v_usecount 45db5918d3Sjmcfield of the vnode 46db5918d3Sjmc.Fa vp 47db5918d3Sjmcand unlock the vnode. 48ac0b1781Scsapuntz.Pp 49ac0b1781ScsapuntzThis operation is functionally equivalent to calling 5036fa1cbeSjmc.Xr VOP_UNLOCK 9 51ac0b1781Scsapuntzfollowed by 52ac0b1781Scsapuntz.Xr vrele 9 . 53ac0b1781Scsapuntz.Sh SEE ALSO 54ac0b1781Scsapuntz.Xr vnode 9 , 5536fa1cbeSjmc.Xr VOP_UNLOCK 9 , 56ac0b1781Scsapuntz.Xr vref 9 , 57ac0b1781Scsapuntz.Xr vrele 9 58ac0b1781Scsapuntz.Sh AUTHORS 59ac0b1781ScsapuntzThis man page was originally written by 60ac0b1781Scsapuntz.An Doug Rabson 61601d79cdSjmcfor 62601d79cdSjmc.Fx . 63