aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2005-04-22 22:37:41 +0000
committerJeff Roberson <jeff@FreeBSD.org>2005-04-22 22:37:41 +0000
commit951407abadbeabf160fd02e57528fdd0f249e6a4 (patch)
tree058a7515231b639a45e5b1aa001420e4cec3032e /sys/sys/lock.h
parent484060ebae35d47b364c2f18dde5928e74fe8946 (diff)
downloadsrc-951407abadbeabf160fd02e57528fdd0f249e6a4.tar.gz
src-951407abadbeabf160fd02e57528fdd0f249e6a4.zip
- Define LOP_DUPOK in lock.h so that we may pass it to individual
witness calls rather than as a flag on the lock object. - Define MTX_DUPOK in terms of LOP_DUPOK in mutex.h. Sponsored by: Isilon Systems, Inc.
Notes
Notes: svn path=/head/; revision=145421
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index f8b168f9c399..90a8e3bf5c2a 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -78,6 +78,7 @@ struct lock_class {
#define LOP_QUIET 0x00000002 /* Don't log locking operations. */
#define LOP_TRYLOCK 0x00000004 /* Don't check lock order. */
#define LOP_EXCLUSIVE 0x00000008 /* Exclusive lock. */
+#define LOP_DUPOK 0x00000010 /* Don't check for duplicate acquires */
/* Flags passed to witness_assert. */
#define LA_UNLOCKED 0x00000000 /* Lock is unlocked. */