MirBSD manpage: panic(9)

PANIC(9)                      BSD Kernel Manual                       PANIC(9)


     panic - Bring down system on fatal error


     #include <sys/types.h>
     #include <sys/systm.h>

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


     The panic() function makes the OpenBSD system terminate. The message fmt
     is a printf(9) style format string. The message is printed to the console
     and the location pointed to by the global char pointer 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

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


     The panic() function does not return.


     printf(3), boot(9), printf(9)

MirBSD #10-current             August 11, 1995                               1

Generated on 2022-12-24 01:00:14 by $MirOS: src/scripts/roff2htm,v 1.113 2022/12/21 23:14:31 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2022 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.

Kontakt / Impressum & Datenschutzerklärung