Added macro which will be used to assert, that the topology lock is not held.

Approved by:	phk, scottl (mentor)
This commit is contained in:
Pawel Jakub Dawidek 2004-02-10 15:53:28 +00:00
parent e9338d5991
commit 692498b0cd

View File

@ -281,6 +281,12 @@ extern struct sx topology_lock;
sx_assert(&topology_lock, SX_XLOCKED); \
} while (0)
#define g_topology_assert_not() \
do { \
g_sanity(NULL); \
sx_assert(&topology_lock, SX_UNLOCKED); \
} while (0)
#define DECLARE_GEOM_CLASS(class, name) \
static moduledata_t name##_mod = { \
#name, g_modevent, &class \