aboutsummaryrefslogtreecommitdiff
path: root/share/man/man9/namei.9
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-05-23 21:29:57 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-05-23 21:29:57 +0000
commitf0c619b22f747421dcfe42a874c77038414705ab (patch)
tree2c55918a34d1b801dbd1c42bfc28086025c4f598 /share/man/man9/namei.9
parent1b82e02f4d91dc0942e754fa6c08042537f13980 (diff)
Be more clear about LOCKLEAF being exclusive and add LOCKSHARED.
Notes
Notes: svn path=/head/; revision=300540
Diffstat (limited to 'share/man/man9/namei.9')
-rw-r--r--share/man/man9/namei.923
1 files changed, 20 insertions, 3 deletions
diff --git a/share/man/man9/namei.9 b/share/man/man9/namei.9
index 305665a22c47..b51b9c48a48a 100644
--- a/share/man/man9/namei.9
+++ b/share/man/man9/namei.9
@@ -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