summaryrefslogtreecommitdiffstats
path: root/share/man/man9/lock.9
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2008-02-25 19:12:01 +0000
committerattilio <attilio@FreeBSD.org>2008-02-25 19:12:01 +0000
commit98b1ca63eda1f8aeceaa09763a6a4ef0c279b7ae (patch)
tree05f868e9c8c7d5e63106969b41532d1134841521 /share/man/man9/lock.9
parent67638f8d86ed7b5408ba9ed6f4d3840ae7de3a03 (diff)
downloadFreeBSD-src-98b1ca63eda1f8aeceaa09763a6a4ef0c279b7ae.zip
FreeBSD-src-98b1ca63eda1f8aeceaa09763a6a4ef0c279b7ae.tar.gz
Modify VOP_ISLOCKED() and lockstatus() prototypes in order to reflect
'thread' argument axing.
Diffstat (limited to 'share/man/man9/lock.9')
-rw-r--r--share/man/man9/lock.923
1 files changed, 6 insertions, 17 deletions
diff --git a/share/man/man9/lock.9 b/share/man/man9/lock.9
index 70959f0..8f6679f 100644
--- a/share/man/man9/lock.9
+++ b/share/man/man9/lock.9
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 13, 2008
+.Dd February 25, 2008
.Dt LOCK 9
.Os
.Sh NAME
@@ -49,7 +49,7 @@
.Ft int
.Fn lockmgr "struct lock *lkp" "u_int flags" "struct mtx *interlkp"
.Ft int
-.Fn lockstatus "struct lock *lkp" "struct thread *td"
+.Fn lockstatus "struct lock *lkp"
.Ft void
.Fn lockmgr_disown "struct lock *lkp"
.Ft void
@@ -180,20 +180,11 @@ See
.Pp
The
.Fn lockstatus
-function returns the status of the lock in relation to the
-.Vt thread
-passed to it.
-Note that if
-.Fa td
-is
-.Dv NULL
-and an exclusive lock is held,
-.Dv LK_EXCLUSIVE
-will be returned.
+function returns the status of the lock in relation to the current thread.
.Pp
The
.Fn lockmgr_disown
-function switches the owner from curthread to be
+function switches the owner from the current thread to be
.Dv LK_KERNPROC,
if the lock is already held.
.Pp
@@ -283,11 +274,9 @@ The
function returns:
.Bl -tag -width ".Dv LK_EXCLUSIVE"
.It Dv LK_EXCLUSIVE
-An exclusive lock is held by the thread
-.Fa td .
+An exclusive lock is held by the current thread.
.It Dv LK_EXCLOTHER
-An exclusive lock is held by someone other than the thread
-.Fa td .
+An exclusive lock is held by someone other than the current thread.
.It Dv LK_SHARED
A shared lock is held.
.It Li 0
OpenPOWER on IntegriCloud