KASSERT in kernel module outside src/sys
Duane Whitty
duane at dwlabs.ca
Tue Dec 12 15:38:23 PST 2006
On Tue, Dec 12, 2006 at 02:30:41PM -0800, Kevin Sanders wrote:
> I'm trying to use KASSERT in my own kernel module and I can't get it
> to assert even with a KASSERT(0, "test panic"). Is there something
> else I need to do besides add options INVARIANTS to my kernel config
> file. Any clues would be appreciated.
>
> Kevin
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
According to src/sys/conf/NOTES
# The INVARIANT_SUPPORT option makes us compile in support for
# verifying some of the internal structures. It is a prerequisite for
# 'INVARIANTS', as enabling 'INVARIANTS' will make these functions be
# called.
Best Regards,
Duane Whitty
More information about the freebsd-hackers
mailing list