aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_freebsd.h
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2012-11-26 00:06:55 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2012-11-26 00:06:55 +0000
commit3845e367441d7fbf36602a35b844477efd3b2c6c (patch)
tree5743a15fe1eea3cecc7cfceeed890d38a52569a7 /sys/net80211/ieee80211_freebsd.h
parentf114e8dbc7c6bd05c39fb6b815f61a6e2963d8a5 (diff)
downloadsrc-3845e367441d7fbf36602a35b844477efd3b2c6c.tar.gz
src-3845e367441d7fbf36602a35b844477efd3b2c6c.zip
Add a primitive to check if a lock is not owned.
Notes
Notes: svn path=/head/; revision=243532
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.h')
-rw-r--r--sys/net80211/ieee80211_freebsd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_freebsd.h b/sys/net80211/ieee80211_freebsd.h
index abfc2c0a26e2..9491c1ab852d 100644
--- a/sys/net80211/ieee80211_freebsd.h
+++ b/sys/net80211/ieee80211_freebsd.h
@@ -53,6 +53,8 @@ typedef struct {
#define IEEE80211_UNLOCK(_ic) mtx_unlock(IEEE80211_LOCK_OBJ(_ic))
#define IEEE80211_LOCK_ASSERT(_ic) \
mtx_assert(IEEE80211_LOCK_OBJ(_ic), MA_OWNED)
+#define IEEE80211_UNLOCK_ASSERT(_ic) \
+ mtx_assert(IEEE80211_LOCK_OBJ(_ic), MA_NOTOWNED)
/*
* Node locking definitions.