aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2014-12-13 21:00:10 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2014-12-13 21:00:10 +0000
commitfd07ddcf6fb1bf6fde30a92216e3cb4093c29175 (patch)
tree953adb99f01e8d4c4fb2634bbc85b752a2c305b1 /sys/sys/lock.h
parent5571af1d8f408227e0eb05062cf1a64c91b4eb4c (diff)
downloadsrc-fd07ddcf6fb1bf6fde30a92216e3cb4093c29175.tar.gz
src-fd07ddcf6fb1bf6fde30a92216e3cb4093c29175.zip
Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9).
A _NEW flag passed to _init_flags() to avoid check for double-init. Differential Revision: https://reviews.freebsd.org/D1208 Reviewed by: jhb, wblock MFC after: 1 Month
Notes
Notes: svn path=/head/; revision=275751
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 e4b573a2676f..8d7a068500db 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -84,6 +84,7 @@ struct lock_class {
#define LO_IS_VNODE 0x00800000 /* Tell WITNESS about a VNODE lock */
#define LO_CLASSMASK 0x0f000000 /* Class index bitmask. */
#define LO_NOPROFILE 0x10000000 /* Don't profile this lock */
+#define LO_NEW 0x20000000 /* Don't check for double-init */
/*
* Lock classes are statically assigned an index into the gobal lock_classes