|
NAMEKASSERT —
kernel expression verification macro
SYNOPSISoptions INVARIANTS
DESCRIPTIONIn a kernel compiled withoptions INVARIANTS , the
KASSERT () macro tests the given
expression and if it is false, calls the
panic(9)
function, terminating the running system.
In a kernel that does not have EXAMPLESThe kernel functionvput () must not be called with a
NULL pointer.
void vput(vp) struct vnode *vp; { struct proc *p = curproc; KASSERT(vp != NULL, ("vput: null vp")); ... } SEE ALSOconfig(8), panic(9)AUTHORSThis manual page was written by Jonathan M. Bresler <jmb@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |