Crashes the system.
#include <sys/types.h> #include <sys/errno.h>
panic (s) char *s;
|s||Points to a character string to be written to the error log.|
The panic kernel service is called when a catastrophic error occurs and the system can no longer continue to operate. The panic service performs these two actions:
The system halts after the dump. You should wait for the dump to complete, reboot the system, and then save and analyze the dump.
The panic kernel service can be called from either the process or interrupt environment.
The panic kernel service has no return values.
The panic kernel service is part of Base Operating System (BOS) Runtime.
RAS Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.