summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-02-04 07:53:35 +0000
committerpjd <pjd@FreeBSD.org>2004-02-04 07:53:35 +0000
commitdbee7341f26a062b44799fd4001a83ef164a1eb3 (patch)
treec772260aeb8f96598009acd9a40007aabf85a497 /sys
parentf5afa046ff59075917d5110abb1571af120f1a83 (diff)
downloadFreeBSD-src-dbee7341f26a062b44799fd4001a83ef164a1eb3.zip
FreeBSD-src-dbee7341f26a062b44799fd4001a83ef164a1eb3.tar.gz
Add SX_UNLOCKED define. It will be used with sx_assert(9) to be
sure that current thread does not hold given sx(9) lock. Reviewed by: jhb Approved by: jhb, scottl (mentor)
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/sx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sx.h b/sys/sys/sx.h
index 5b9545c..3dc9be0 100644
--- a/sys/sys/sx.h
+++ b/sys/sys/sx.h
@@ -88,6 +88,7 @@ struct sx_args {
#define SX_LOCKED LA_LOCKED
#define SX_SLOCKED LA_SLOCKED
#define SX_XLOCKED LA_XLOCKED
+#define SX_UNLOCKED LA_UNLOCKED
#endif /* INVARIANTS || INVARIANT_SUPPORT */
#ifdef INVARIANTS
OpenPOWER on IntegriCloud