panic(9freebsd)

panic9freebsd

Bring down system on fatal error

Usage

#include <sys/types.h>

#include <sys/systm.h>

void

panic(const char *fmt, ...);

void

vpanic(const char *fmt, va_list ap);

Overview

The panic() and vpanic() functions terminate the running system. The message fmt is a printf(3) style format string. The message is printed to the console and the location panicstr is set to the address of the message text for retrieval from the OS core dump.

If the kernel debugger is installed control is passed to it, otherwise an attempt to save a core dump of the OS to a configured dump device is made.

If panic() is called twice (from the disk sync routines, for example) the system is rebooted without syncing the disks.

Return values

The panic() function does not return.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11–13

From freebsd-manpages 12.2-2 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.