KASSERT in kernel module outside src/sys

Kris Kennaway kris at obsecurity.org
Tue Dec 12 15:38:20 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.

Modules built by hand do not use the kernel config file (they don't
know which one to use).  You can build your module along with your
kernel using MODULES_OVERRIDE or equivalent, or just add -DINVARIANTS
etc to your module makefile.



> 
> 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"
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20061212/63d3ba68/attachment.pgp


More information about the freebsd-hackers mailing list