12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

KASSERT(9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> KASSERT(9)<strong>NAME</strong>KASSERT, KDASSERT —kernel expression verification macrosSYNOPSISvoidKASSERT(expression);voidKDASSERT(expression);DESCRIPTIONThese machine independent assertion-checking macros cause a kernel panic(9) if the given expressionevaluates to false.KASSERT() tests are included only in kernels compiled with the DIAGNOSTIC configuration option. In akernel that does not have this configuration option, the KASSERT() macro is defined to be a no-op.KDASSERT() tests are included only in kernels compiled with the DEBUG configuration option.KDASSERT() and KASSERT() are identical except for the controlling option (DEBUG vs DIAGNOSTIC).The panic message will display the style of assertion (debugging vs. diagnostic), the expression that failedand the filename, and line number the failure happened on.SEE ALSOconfig(1), panic(9), printf(9)AUTHORSThese macros were written by Chris G. Demetriou 〈cgd@netbsd.org〉.<strong>NetBSD</strong> 3.0 December 10, 2006 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!