mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 06:12:01 +01:00
Add a primitive to check if a lock is not owned.
This commit is contained in:
parent
f114e8dbc7
commit
3845e36744
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243532
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user