Watchdog Node Management Code - Sun Microsystems Netra CP2500 Programming Manual

For the solaris operating system
Table of Contents

Advertisement

Watchdog Node Management Code

CODE EXAMPLE 1-1
timer nodes. This code can be used to change watchdog timer action and timeout
values and also to arm and disarm the watchdog controller.
System Watchdog Node Management Code Example
CODE EXAMPLE 1-1
/*
* Copyright 2003 Sun Microsystems, Inc.
* Use is subject to license terms.
*/
#pragma ident
/*
* This program is used to manage the system watchdog nodes.
* Please refer to libpicl(3LIB) for information on picl APIs
* To compile:
*
cc -o wdadm -lpicl wdadm.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <alloca.h>
#include <libintl.h>
#include <locale.h>
#include <unistd.h>
#include <assert.h>
#include <inttypes.h>
#include <sys/termios.h>
#include <picl.h>
/*
* Error codes
*/
#define EM_USAGE
:_class
:name
watchdog-level2
contains an example of the code used for managing the watchdog
"@(#)wdadm.c
1.6
0
watchdog-timer
All rights reserved.
03/10/16 SMI"
Chapter 1 Watchdog Timer
5

Advertisement

Table of Contents
loading

Table of Contents