Module Name: src Committed By: rmind Date: Sat Jul 7 21:27:56 UTC 2012
Modified Files: src/share/man/man9: mutex.9 Log Message: mutex_owned: update about not-held test. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/share/man/man9/mutex.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man9/mutex.9 diff -u src/share/man/man9/mutex.9:1.24 src/share/man/man9/mutex.9:1.25 --- src/share/man/man9/mutex.9:1.24 Thu Dec 2 12:54:13 2010 +++ src/share/man/man9/mutex.9 Sat Jul 7 21:27:56 2012 @@ -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 @@ For example: 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