2019-11-19 20:30:40 +00:00
|
|
|
.TH PANIC 9
|
|
|
|
.SH NAME
|
|
|
|
panic \- abandon hope, all ye who enter here
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.ta \w'\fLvoid 'u
|
|
|
|
.B
|
|
|
|
void panic(char *fmt, ...)
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.I Panic
|
|
|
|
writes a message to the console and
|
|
|
|
causes the system to give up the host.
|
|
|
|
It enables interrupts, dumps the kernel stack,
|
|
|
|
and halts the current processor;
|
|
|
|
if more than one, others will gradually come to a halt.
|
|
|
|
Depending on configuration settings, the platform-dependent
|
|
|
|
.I exit
|
|
|
|
might reboot the system.
|
|
|
|
The format
|
|
|
|
.I fmt
|
|
|
|
and associated arguments are the same as those for
|
2021-09-08 18:22:35 +00:00
|
|
|
.IR print (2).
|
2019-11-19 20:30:40 +00:00
|
|
|
.I Panic
|
|
|
|
adds a prefix
|
|
|
|
.L "panic: "
|
|
|
|
and a trailing newline.
|