Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
vmwatchdog.c File Reference
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include <linux/suspend.h>
#include <linux/watchdog.h>
#include <asm/ebcdic.h>
#include <asm/io.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "vmwatchdog"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define MAX_CMDLEN   240
 
#define MIN_INTERVAL   15
 
#define VMWDT_OPEN   0 /* devnode is open or suspend in progress */
 
#define VMWDT_RUNNING   1 /* The watchdog is armed */
 

Enumerations

enum  vmwdt_func { wdt_init = 0, wdt_change = 1, wdt_cancel = 2, wdt_conceal = 0x80000000 }
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Arnd Bergmann <[email protected]>")
 
 MODULE_DESCRIPTION ("z/VM Watchdog Timer")
 
 module_param_string (cmd, vmwdt_cmd, MAX_CMDLEN, 0644)
 
 MODULE_PARM_DESC (cmd,"CP command that is run when the watchdog triggers")
 
 module_param_named (conceal, vmwdt_conceal, bool, 0644)
 
 MODULE_PARM_DESC (conceal,"Enable the CONCEAL CP option while the watchdog "" is active")
 
 module_param_named (nowayout, vmwdt_nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started"" (default=CONFIG_WATCHDOG_NOWAYOUT)")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 module_init (vmwdt_init)
 
 module_exit (vmwdt_exit)
 

Macro Definition Documentation

#define KMSG_COMPONENT   "vmwatchdog"

Definition at line 11 of file vmwatchdog.c.

#define MAX_CMDLEN   240

Definition at line 28 of file vmwatchdog.c.

#define MIN_INTERVAL   15

Definition at line 29 of file vmwatchdog.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 12 of file vmwatchdog.c.

#define VMWDT_OPEN   0 /* devnode is open or suspend in progress */

Definition at line 54 of file vmwatchdog.c.

#define VMWDT_RUNNING   1 /* The watchdog is armed */

Definition at line 55 of file vmwatchdog.c.

Enumeration Type Documentation

enum vmwdt_func
Enumerator:
wdt_init 
wdt_change 
wdt_cancel 
wdt_conceal 

Definition at line 57 of file vmwatchdog.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Arnd Bergmann <[email protected]>"  )
MODULE_DESCRIPTION ( "z/VM Watchdog Timer )
module_exit ( vmwdt_exit  )
module_init ( vmwdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( conceal  ,
vmwdt_conceal  ,
bool  ,
0644   
)
module_param_named ( nowayout  ,
vmwdt_nowayout  ,
bool  ,
 
)
module_param_string ( cmd  ,
vmwdt_cmd  ,
MAX_CMDLEN  ,
0644   
)
MODULE_PARM_DESC ( cmd  ,
"CP command that is run when the watchdog triggers"   
)
MODULE_PARM_DESC ( conceal  ,
"Enable the CONCEAL CP option while the watchdog "" is active  
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started"" (default=CONFIG_WATCHDOG_NOWAYOUT)"   
)