MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mtx_assert

Function mtx_assert

freebsd/kern/subr_unit.c:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164#define MA_OWNED 9
165
166static void
167mtx_assert(struct mtx *mp, int flag)
168{
169 if (flag == MA_OWNED) {
170 KASSERT(mp->state == 1, ("mtx_assert(MA_OWNED) not true"));
171 }
172}
173
174#define CTASSERT(foo)
175#define WITNESS_WARN(flags, lock, fmt, ...) (void)0

Callers 15

XX_MallocSmartMapCheckFunction · 0.85
XX_MallocSmartMapSetFunction · 0.85
XX_MallocSmartMapClearFunction · 0.85
ccp_queue_reserve_spaceFunction · 0.85
ccp_queue_releaseFunction · 0.85
ccp_queue_abortFunction · 0.85
audit_workerFunction · 0.85
ugidfw_rulecheckFunction · 0.85
mac_pipe_check_ioctlFunction · 0.85
mac_pipe_check_poll_implFunction · 0.85
mac_pipe_check_readFunction · 0.85
mac_pipe_check_relabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected