logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

panic — bring down system on fatal error

Description

       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.

Name

       panic — bring down system on fatal error

Return Values

       The panic() function does not return.

Debian                                           April 23, 2015                                         PANIC(9)

Synopsis

#include<sys/types.h>#include<sys/systm.h>voidpanic(constchar*fmt, ...);

       voidvpanic(constchar*fmt, va_listap);

See Also