Be more clear about LOCKLEAF being exclusive and add LOCKSHARED.
This commit is contained in:
parent
1b82e02f4d
commit
f0c619b22f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300540
@ -33,7 +33,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd May 6, 2015
|
.Dd May 23, 2015
|
||||||
.Dt NAMEI 9
|
.Dt NAMEI 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -121,8 +121,12 @@ function takes the following set of
|
|||||||
that influence its operation:
|
that influence its operation:
|
||||||
.Bl -tag -width ".Dv WANTPARENT"
|
.Bl -tag -width ".Dv WANTPARENT"
|
||||||
.It Dv LOCKLEAF
|
.It Dv LOCKLEAF
|
||||||
Lock vnode on return.
|
Lock vnode on return with
|
||||||
This is a full lock of the vnode; the
|
.Dv LK_EXCLUSIVE
|
||||||
|
unless
|
||||||
|
.Dv LOCKSHARED
|
||||||
|
is also set.
|
||||||
|
The
|
||||||
.Xr VOP_UNLOCK 9
|
.Xr VOP_UNLOCK 9
|
||||||
should be used
|
should be used
|
||||||
to release the lock (or
|
to release the lock (or
|
||||||
@ -149,6 +153,19 @@ or
|
|||||||
.Xr VOP_UNLOCK 9
|
.Xr VOP_UNLOCK 9
|
||||||
and
|
and
|
||||||
.Xr vrele 9 .
|
.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
|
.It Dv WANTPARENT
|
||||||
This flag allows the
|
This flag allows the
|
||||||
.Fn namei
|
.Fn namei
|
||||||
|
Loading…
Reference in New Issue
Block a user