panic Kernel Service
Purpose
Crashes the system.
Syntax
#include <sys/types.h>
#include <sys/errno.h>
panic ( s)
char *s;
char *s;
Parameter
Item | Description |
---|---|
s | Points to a character string to be written to the error log. |
Description
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:
- Writes the character string pointed to by the s parameter to the error log.
- Performs a system dump.
The system halts after the dump. You should wait for the dump to complete, reboot the system, and then save and analyze the dump.
Execution Environment
The panic kernel service can be called from either the process or interrupt environment.
Return Values
The panic kernel service has no return values.