NAME | SYNOPSIS | INTERFACE LEVEL | DESCRIPTION | RETURN VALUES | CONTEXT | SEE ALSO
#include <sys/ddi.h> #include <sys/sunddi.h>int ddi_in_panic(void);
Solaris DDI specific (Solaris DDI).
Drivers controlling devices on which the system may dump a kernel core image in the event of a panic may determine if the system is panicing by calling ddi_in_panic().
When the system is panicing, the calls of functions scheduled by timeout(9F) and ddi_trigger_softintr(9F) will never occur. Neither can delay(9F) be relied upon, since it is implemented via timeout(9F).
Drivers that need to enforce a time delay such as SCSI bus reset delay time must busy-wait when the system is panicing.
ddi_in_panic() returns 1 if the system is in panic, or 0 otherwise.
ddi_in_panic() may be called from any context.
NAME | SYNOPSIS | INTERFACE LEVEL | DESCRIPTION | RETURN VALUES | CONTEXT | SEE ALSO