PANIC(9FREEBSD) - Linux man page online | System kernel interfaces

Bring down system on fatal error.

April 23, 2015
PANIC(9) BSD Kernel Developer's Manual PANIC(9)


panic — bring down system on fatal error


#include <sys/types.h> #include <sys/systm.h> void panic(const char *fmt, ...); void vpanic(const char *fmt, va_list ap);


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.


The panic() function does not return.
BSD April 23, 2015 BSD
This manual Reference Other manuals
panic(9freebsd) referred by auditon(2freebsd) | choosethread(9freebsd) | ddb(4freebsd) | free_mntarg(9freebsd) | KASSERT(9freebsd) | kernel_mount(9freebsd) | kernel_vmount(9freebsd) | lock(9freebsd) | lockdestroy(9freebsd) | lockinit(9freebsd) | lockmgr(9freebsd) | lockmgr_args(9freebsd) | lockmgr_args_rw(9freebsd) | lockmgr_assert(9freebsd) | lockmgr_disown(9freebsd) | lockmgr_printinfo(9freebsd) | lockmgr_recursed(9freebsd) | lockmgr_rw(9freebsd) | lockmgr_waiters(9freebsd) | lockstatus(9freebsd)
refer to printf(3)
Download raw manual
Index BSD Kernel Developer's Manual (+1909) BSD (+3984) № 9 (+1939)
Go top