1ASSERT(9F) Kernel Functions for Drivers ASSERT(9F)
2
3
4
6 ASSERT, assert - expression verification
7
9 #include <sys/debug.h>
10
11
12
13 void ASSERT(EX);
14
15
17 Architecture independent level 1 (DDI/DKI).
18
20 EX boolean expression.
21
22
24 The ASSERT() macro checks to see if the expression EX is true. If it is
25 not, then ASSERT() causes an error message to be logged to the console
26 and the system to panic. ASSERT() works only if the preprocessor symbol
27 DEBUG is defined.
28
30 The ASSERT() macro can be used from user, interrupt, or kernel context.
31
33 Writing Device Drivers
34
35
36
37SunOS 5.11 16 Jan 2006 ASSERT(9F)