INVARIANTS in sys/sys/sx.h

Jun Kuriyama kuriyama at
Mon Aug 28 14:38:52 UTC 2006

I found this when I compiled my kernel with INVARIANTS without

In src/sys/sys/sx.h, _sx_assert() is defined in INVARIANT_SUPPORT,

> void	_sx_assert(struct sx *sx, int what, const char *file, int line);
> #endif

but sx_assert() uses this function in INVARIANTS option.

> #define	sx_assert(sx, what)	_sx_assert((sx), (what), LOCK_FILE, LOCK_LINE)
> #else
> #define	sx_assert(sx, what)
> #endif

Is this consistent?

Jun Kuriyama <kuriyama at> // IMG SRC, Inc.
             <kuriyama at> // FreeBSD Project

More information about the freebsd-current mailing list