Add macro NET_CALLOUT_MPSAFE, which should be used when initializing

network related callouts.

Reviewed by:	rwatson
This commit is contained in:
Gleb Smirnoff 2005-03-01 11:54:46 +00:00
parent 6313c7a1f2
commit d111bbbc06

View File

@ -395,6 +395,7 @@ extern int debug_mpsafenet; /* defined in net/netisr.c */
if (!debug_mpsafenet) \
mtx_assert(&Giant, MA_OWNED); \
} while (0)
#define NET_CALLOUT_MPSAFE (debug_mpsafenet ? CALLOUT_MPSAFE : 0)
#define UGAR(rval) do { \
int _val = (rval); \