xref: /netbsd-src/share/man/man9/panic.9 (revision 81b108b45f75f89f1e3ffad9fb6f074e771c0935)
1.Dd August 11, 1995
2.Dt PANIC 9
3.Os
4.Sh NAME
5.Nm panic
6.Nd Bring down system on fatal error
7.Sh SYNOPSIS
8.Fd #include <sys/types.h>
9.Fd #include <sys/systm.h>
10.Ft void
11.Fn panic "const char *fmt, ..."
12.Sh DESCRIPTION
13The
14.Fn panic
15function terminate the NetBSD system.  The message
16.Fa fmt
17is a
18.Xr printf 3
19style format string.  The message is printed to the console and the location
20.Fa panicstr
21is set to the address of the message text for retrival from the OS
22core dump.
23.Pp
24If the kernel debugger is installed control is passed to it, otherwise
25an attempt to save a core dump of the OS to a configured dump device
26is made.
27.Pp
28If
29.Fn panic
30is called twice (from the disk sync routines, for example) the system is
31rebooted without syncing the disks.
32.Sh RETURN VALUES
33The
34.Fn panic
35function does not return.
36