Add a primitive to check if a lock is not owned.

This commit is contained in:
Adrian Chadd 2012-11-26 00:06:55 +00:00
parent f114e8dbc7
commit 3845e36744
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243532

View File

@ -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.