Rearming The Watchdog; Getting The State Of The Watchdog Timer; Finding And Defining Data Structures - Sun Microsystems Netra T2000 Administration Manual

Server
Hide thumbs Also See for Netra T2000:
Table of Contents

Advertisement

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 LOMIOCDOGSTATE 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
members are used to hold the current states of the watchdog reset circuitry and
current watchdog timeout period. This timeout period 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:
CODE EXAMPLE A-1
typedef struct {
} lom_dogstate_t;
The watchdog and reset control data structure is as follows:
90
Netra T2000 Server Administration Guide • September 2006
"Finding and Defining Data Structures" on page
Watchdog and Reset State Data Structure
int reset_enable; /* reset enabled if non-zero */
int dog_enable; /* watchdog enabled if non-zero */
uint_t dog_timeout; /* Current watchdog timeout */
90. The structure

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Netra T2000 and is the answer not in the manual?

Table of Contents