summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-12-21 22:42:18 +0000
committerpjd <pjd@FreeBSD.org>2006-12-21 22:42:18 +0000
commitbb91ae1dccb824ec26b15b2c54a741f7b30d3e1b (patch)
treedcd2b4703f3230f2c4298f3ec62c0fdec9449fce
parentc3d8c955c321baf33086908d50412b3283015f0b (diff)
downloadFreeBSD-src-bb91ae1dccb824ec26b15b2c54a741f7b30d3e1b.zip
FreeBSD-src-bb91ae1dccb824ec26b15b2c54a741f7b30d3e1b.tar.gz
Document MTX_NOPROFILE flag.
-rw-r--r--share/man/man9/mutex.94
-rw-r--r--sys/sys/mutex.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/share/man/man9/mutex.9 b/share/man/man9/mutex.9
index 49e1daf..0856a6c 100644
--- a/share/man/man9/mutex.9
+++ b/share/man/man9/mutex.9
@@ -28,7 +28,7 @@
.\" from BSDI $Id: mutex.4,v 1.1.2.3 1998/04/27 22:53:13 ewv Exp $
.\" $FreeBSD$
.\"
-.Dd February 1, 2006
+.Dd December 21, 2006
.Dt MUTEX 9
.Os
.Sh NAME
@@ -434,6 +434,8 @@ Instruct
to ignore this lock.
.It Dv MTX_DUPOK
Witness should not log messages about duplicate locks being acquired.
+.It Dv MTX_NOPROFILE
+Do not profile this lock.
.El
.Ss Lock and Unlock Flags
The flags passed to the
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h
index 90be6cc..06b5842 100644
--- a/sys/sys/mutex.h
+++ b/sys/sys/mutex.h
@@ -57,7 +57,7 @@
#define MTX_SPIN 0x00000001 /* Spin lock (disables interrupts) */
#define MTX_RECURSE 0x00000004 /* Option: lock allowed to recurse */
#define MTX_NOWITNESS 0x00000008 /* Don't do any witness checking. */
-#define MTX_NOPROFILE 0x00000020
+#define MTX_NOPROFILE 0x00000020 /* Don't profile this lock */
/*
* Option flags passed to certain lock/unlock routines, through the use
OpenPOWER on IntegriCloud