Query: kassert
OS: debian
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
KASSERT(9) BSD Kernel Developer's Manual KASSERT(9)NAMEKASSERT -- kernel expression verification macroSYNOPSISoptions INVARIANTS #include <sys/param.h> #include <sys/systm.h> KASSERT(expression, msg);DESCRIPTIONIn a kernel compiled with options 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 options INVARIANTS, the KASSERT() macro is defined to be a no-op. The second argument is a printf(9) format string and its arguments, enclosed in parentheses.EXAMPLESThe kernel function vput() 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>.BSDJanuary 14, 2000 BSD
Related Man Pages |
---|
vput(9) - freebsd |
kdassertmsg(9) - netbsd |
vput(9) - linux |
vrele(9) - opensolaris |
vput(9) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
Detecting unused variables... |
Find columns in a file based on header and print to new file |
A (ksh) Library For and From UNIX.com |
New UNIX and Linux History Sections |