pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
watchdog.c File Reference
#include <crm_internal.h>
#include <sched.h>
#include <sys/ioctl.h>
#include <sys/reboot.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <ctype.h>
#include <dirent.h>
Include dependency graph for watchdog.c:

Go to the source code of this file.

Macros

#define SYSRQ   "/proc/sys/kernel/sysrq"
 

Enumerations

enum  pcmk_panic_flags { pcmk_panic_none = 0x00, pcmk_panic_delay = 0x01, pcmk_panic_kdump = 0x02, pcmk_panic_shutdown = 0x04 }
 

Functions

void sysrq_init (void)
 
void pcmk_panic (const char *origin)
 
pid_t pcmk_locate_sbd (void)
 
long crm_get_sbd_timeout (void)
 
gboolean check_sbd_timeout (const char *value)
 

Macro Definition Documentation

#define SYSRQ   "/proc/sys/kernel/sysrq"

Definition at line 35 of file watchdog.c.

Enumeration Type Documentation

Enumerator
pcmk_panic_none 
pcmk_panic_delay 
pcmk_panic_kdump 
pcmk_panic_shutdown 

Definition at line 27 of file watchdog.c.

Function Documentation

gboolean check_sbd_timeout ( const char *  value)

Definition at line 255 of file watchdog.c.

long crm_get_sbd_timeout ( void  )

Definition at line 246 of file watchdog.c.

pid_t pcmk_locate_sbd ( void  )

Definition at line 208 of file watchdog.c.

void pcmk_panic ( const char *  origin)

Definition at line 177 of file watchdog.c.

void sysrq_init ( void  )

Definition at line 38 of file watchdog.c.