Unix and Linux Discussions Tagged with panic |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
11,897 |
OS X (Apple) |
|
|
|
6 |
17,005 |
AIX |
|
|
|
7 |
20,562 |
UNIX Desktop Questions & Answers |
|
|
|
3 |
9,065 |
Solaris |
|
|
|
3 |
16,113 |
SCO |
|
|
|
6 |
3,900 |
Solaris |
|
|
|
5 |
11,618 |
Solaris |
|
|
|
2 |
7,591 |
Solaris |
|
|
|
5 |
12,820 |
Solaris |
|
|
|
1 |
9,713 |
Solaris |
|
|
|
4 |
2,895 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,682 |
SCO |
|
|
|
1 |
5,473 |
SCO |
|
|
|
2 |
4,674 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,722 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,788 |
Filesystems, Disks and Memory |
|
|
|
4 |
4,751 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,292 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
19,167 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
5,415 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,670 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,517 |
UNIX for Dummies Questions & Answers |
ddi_in_panic(9F) Kernel Functions for Drivers ddi_in_panic(9F)
NAME
ddi_in_panic - determine if system is in panic state
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_in_panic(void);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
DESCRIPTION
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) 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 panicking.
RETURN VALUES
ddi_in_panic() returns 1 if the system is in panic, or 0 otherwise.
CONTEXT
ddi_in_panic() may be called from any context.
SEE ALSO
dump(9E), delay(9F), ddi_trigger_softintr(9F), timeout(9F)
Writing Device Drivers
SunOS 5.11 23 Jun 1997 ddi_in_panic(9F)