108
Netra 1290 Server System Administration Guide • May 2006
Rearming the Watchdog
The
LOMIOCDOGPAT
IOCTL rearms, or pats, the watchdog so that the watchdog
starts ticking from the beginning; that is, to the value specified by
LOMIOCDOGTIME
.
This IOCTL requires no arguments. If the watchdog is enabled, this IOCTL must be
used at regular intervals that are less than the watchdog timeout, or the watchdog
expires.
Getting the State of the Watchdog Timer
The
LOMIOCDOGSTATE
IOCTL gets the state of the watchdog and reset functions and
retrieves the current time-out period for the watchdog. If
LOMIOCDOGTIME
was
never issued to set up the timeout period prior to this IOCTL, the watchdog is not
enabled in the hardware.
The argument is a pointer to the
lom_dogstate_t
structure, which is described in
greater detail in
“Finding and Defining Data Structures” on page 108
. The structure
members are used to hold the current states of the watchdog reset circuitry and
current watchdog timeout period. Note that this is not the time remaining before the
watchdog is triggered.
The
LOMIOCDOGSTATE
IOCTL requires only that
open()
be successfully called. This
IOCTL can be run any number of times after
open()
is called, and it does not
require any other
DOG
IOCTLs to have been executed.
Finding and Defining Data Structures
All data structures and IOCTLs are defined in
lom_io.h,
which is available in the
SUNWlomh
package.
The data structures for the watchdog timer are shown here:
■
The watchdog and reset state data structure is as follows:
■
The watchdog and reset control data structure is as follows:
CODE EXAMPLE B-1
Watchdog and Reset State Data Structure
typedef struct {
int reset_enable; /* reset enabled if non-zero */
int dog_enable; /* watchdog enabled if non-zero */
uint_t dog_timeout; /* Current watchdog timeout */
} lom_dogstate_t;
Содержание Netra 1290
Страница 12: ...xii Netra 1290 Server System Administration Guide May 2006...
Страница 32: ...14 Netra 1290 Server System Administration Guide May 2006...
Страница 48: ...30 Netra 1290 Server System Administration Guide May 2006...
Страница 80: ...62 Netra 1290 Server System Administration Guide May 2006...
Страница 104: ...86 Netra 1290 Server System Administration Guide May 2006...
Страница 112: ...94 Netra 1290 Server System Administration Guide May 2006...
Страница 142: ...124 Netra 1290 Server System Administration Guide May 2006...