Data Structures


All data structures and ioctls are defined in lom_io.h.

Watchdog/Reset State Data Structure

Following is the watchdog/reset state data structure.
typedef struct { 
int reset_enable; /* reset enabled iff non-zero */
int dog_enable; /* watchdog enabled iff non-zero */ 
uint_t dog_timeout; /* Current watchdog timeout */
 } lom_dogstate_t;

Watchdog/Reset Control Data Structure

Following is the watchdog/reset control data structure.
typedef struct { 
int reset_enable; /* reset enabled iff non-zero */ 
int dog_enable; /* watchdog enabled iff non-zero */ 
} lom_dogctl_t;

  

Understanding the ALOM watchdog timer

Driver properties

User APIs

Error messages

Sample program