4.1.3.7 panic (Kernel-Destructive)

void panic(void)

When triggered, the panic action causes a kernel panic. This action should be used to force a system crash dump at a time of interest. You can use this action along with ring buffering to understand a problem. For more information, see Chapter 5, Buffers and Buffering . When the panic action is used, a panic message appears denoting the probe that is causing the panic. rsyslogd also emits a message upon reboot. The message buffer of the crash dump contains the probe and event control block (ECB) that is responsible for the panic action.