Kernel Functions for Drivers ddiinpanic(9F)
NAME
ddiinpanic - determine if system is in panic state
SYNOPSIS
#include
#include
int ddiinpanic(void);
INTERFACE LEVEL
Solaris DI specific (Solaris DI).
DESCRIPTION
Drivers controlling devices on which the system may write a
kernel crash dump in the event of a panic can call
ddiinpanic() to determine if the system is panicking.
When the system is panicking, the calls of functions
scheduled by timeout(9F) and dditriggersoftintr(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 panick-
ing.
RETURN VALUES
ddiinpanic() returns 1 if the system is in panic, or 0
otherwise.
CONTEXT
ddiinpanic() may be called from any context.
SEE ALSO
dump(9E), delay(9F), dditriggersoftintr(9F), timeout(9F)
Writing Device Drivers
SunOS 5.11 Last change: 23 Jun 1997 1
|