From owner-svn-src-head@freebsd.org Mon May 23 21:29:59 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2034AB47531; Mon, 23 May 2016 21:29:59 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E57791A2D; Mon, 23 May 2016 21:29:58 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4NLTw0i094361; Mon, 23 May 2016 21:29:58 GMT (envelope-from bdrewery@FreeBSD.org) Received: (from bdrewery@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4NLTwpF094360; Mon, 23 May 2016 21:29:58 GMT (envelope-from bdrewery@FreeBSD.org) Message-Id: <201605232129.u4NLTwpF094360@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bdrewery set sender to bdrewery@FreeBSD.org using -f From: Bryan Drewery Date: Mon, 23 May 2016 21:29:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300540 - head/share/man/man9 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 21:29:59 -0000 Author: bdrewery Date: Mon May 23 21:29:57 2016 New Revision: 300540 URL: https://svnweb.freebsd.org/changeset/base/300540 Log: Be more clear about LOCKLEAF being exclusive and add LOCKSHARED. Modified: head/share/man/man9/namei.9 Modified: head/share/man/man9/namei.9 ============================================================================== --- head/share/man/man9/namei.9 Mon May 23 20:29:18 2016 (r300539) +++ head/share/man/man9/namei.9 Mon May 23 21:29:57 2016 (r300540) @@ -33,7 +33,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 6, 2015 +.Dd May 23, 2015 .Dt NAMEI 9 .Os .Sh NAME @@ -121,8 +121,12 @@ function takes the following set of that influence its operation: .Bl -tag -width ".Dv WANTPARENT" .It Dv LOCKLEAF -Lock vnode on return. -This is a full lock of the vnode; the +Lock vnode on return with +.Dv LK_EXCLUSIVE +unless +.Dv LOCKSHARED +is also set. +The .Xr VOP_UNLOCK 9 should be used to release the lock (or @@ -149,6 +153,19 @@ or .Xr VOP_UNLOCK 9 and .Xr vrele 9 . +.It Dv LOCKSHARED +Lock vnode on return with +.Dv LK_SHARED . +The +.Xr VOP_UNLOCK 9 +should be used +to release the lock (or +.Xr vput 9 +which is equivalent to calling +.Xr VOP_UNLOCK 9 +followed by +.Xr vrele 9 , +all in one). .It Dv WANTPARENT This flag allows the .Fn namei