diff options
author | adrian <adrian@FreeBSD.org> | 2012-11-26 00:06:55 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-11-26 00:06:55 +0000 |
commit | 776254641b7e15e982ca1d3c61dfa1b1812f876b (patch) | |
tree | 5743a15fe1eea3cecc7cfceeed890d38a52569a7 /sys/net80211 | |
parent | 1ccc5958ab8b5effe3733fecd9d7f05598317165 (diff) | |
download | FreeBSD-src-776254641b7e15e982ca1d3c61dfa1b1812f876b.zip FreeBSD-src-776254641b7e15e982ca1d3c61dfa1b1812f876b.tar.gz |
Add a primitive to check if a lock is not owned.
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_freebsd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_freebsd.h b/sys/net80211/ieee80211_freebsd.h index abfc2c0..9491c1a 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. |