Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2012 00:06:55 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243532 - head/sys/net80211
Message-ID:  <201211260006.qAQ06tfm052747@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Nov 26 00:06:55 2012
New Revision: 243532
URL: http://svnweb.freebsd.org/changeset/base/243532

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

Modified:
  head/sys/net80211/ieee80211_freebsd.h

Modified: head/sys/net80211/ieee80211_freebsd.h
==============================================================================
--- head/sys/net80211/ieee80211_freebsd.h	Sun Nov 25 21:32:13 2012	(r243531)
+++ head/sys/net80211/ieee80211_freebsd.h	Mon Nov 26 00:06:55 2012	(r243532)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211260006.qAQ06tfm052747>