DDI_IN_PANIC(9F) Kernel Functions for Drivers DDI_IN_PANIC(9F)
ddi_in_panic - determine if system is in panic state
#include <sys/sunddi.h> int ddi_in_panic
illumos DDI specific (illumos DDI).
Drivers controlling devices on which the system may write a kernel crash
dump in the event of a panic can call ddi_in_panic()
to determine if the
system is panicking.
When the system is panicking, the calls of functions scheduled by timeout(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 panicking.
RETURN VALUES ddi_in_panic()
if the system is in panic, or 0
may be called from any context.
SEE ALSO dump(9E)
, timeout(9F) Writing Device Drivers
June 23, 1997 DDI_IN_PANIC(9F)