Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 mutex_owned: update about not-held test.



details:   https://anonhg.NetBSD.org/src/rev/9df2eebb1fc4
branches:  trunk
changeset: 780022:9df2eebb1fc4
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Jul 07 21:27:56 2012 +0000

description:
mutex_owned: update about not-held test.

diffstat:

 share/man/man9/mutex.9 |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r c7e852cb8810 -r 9df2eebb1fc4 share/man/man9/mutex.9
--- a/share/man/man9/mutex.9    Sat Jul 07 21:26:36 2012 +0000
+++ b/share/man/man9/mutex.9    Sat Jul 07 21:27:56 2012 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mutex.9,v 1.24 2010/12/02 12:54:13 wiz Exp $
+.\"    $NetBSD: mutex.9,v 1.25 2012/07/07 21:27:56 rmind Exp $
 .\"
 .\" Copyright (c) 2007, 2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd September 14, 2010
+.Dd July 7, 2012
 .Dt MUTEX 9
 .Os
 .Sh NAME
@@ -186,8 +186,8 @@
        KASSERT(mutex_owned(\*[Am]driver_lock));
 .Ed
 .Pp
-It should not be used to make locking decisions at run time, or to
-verify that a lock is not held.
+It should not be used to make locking decisions at run time.
+For spin mutexes, it must not be used to verify that a lock is not held.
 .It Fn mutex_spin_enter "mtx"
 .Pp
 Equivalent to



Home | Main Index | Thread Index | Old Index