summaryrefslogtreecommitdiffstats
path: root/share
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
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')
-rw-r--r--share/man/man9/VOP_LOCK.97
-rw-r--r--share/man/man9/lock.923
2 files changed, 8 insertions, 22 deletions
diff --git a/share/man/man9/VOP_LOCK.9 b/share/man/man9/VOP_LOCK.9
index 43d65a3..1c9857e 100644
--- a/share/man/man9/VOP_LOCK.9
+++ b/share/man/man9/VOP_LOCK.9
@@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd January 19, 2008
+.Dd February 25, 2008
.Os
.Dt VOP_LOCK 9
.Sh NAME
@@ -46,7 +46,7 @@
.Ft int
.Fn VOP_UNLOCK "struct vnode *vp" "int flags"
.Ft int
-.Fn VOP_ISLOCKED "struct vnode *vp" "struct thread *td"
+.Fn VOP_ISLOCKED "struct vnode *vp"
.Ft int
.Fn vn_lock "struct vnode *vp" "int flags"
.Sh DESCRIPTION
@@ -101,9 +101,6 @@ will unlock the simple lock after getting the lock).
.It Dv LK_RETRY
Retry until locked.
.El
-.It Fa td
-Thread context to use for the locks.
-.El
.Pp
Kernel code should use
.Fn vn_lock
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