Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
softdog.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define TIMER_MARGIN   60 /* Default is 60 seconds */
 

Functions

 module_param (soft_margin, uint, 0)
 
 MODULE_PARM_DESC (soft_margin,"Watchdog soft_margin in seconds. (0 < soft_margin < 65536, default="__MODULE_STRING(TIMER_MARGIN)")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_param (soft_noboot, int, 0)
 
 MODULE_PARM_DESC (soft_noboot,"Softdog action, set to 1 to ignore reboots, 0 to reboot (default=0)")
 
 module_param (soft_panic, int, 0)
 
 MODULE_PARM_DESC (soft_panic,"Softdog action, set to 1 to panic, 0 to reboot (default=0)")
 
 module_init (watchdog_init)
 
 module_exit (watchdog_exit)
 
 MODULE_AUTHOR ("Alan Cox")
 
 MODULE_DESCRIPTION ("Software Watchdog Device Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 39 of file softdog.c.

#define TIMER_MARGIN   60 /* Default is 60 seconds */

Definition at line 53 of file softdog.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Alan Cox"  )
MODULE_DESCRIPTION ( "Software Watchdog Device Driver"  )
module_exit ( watchdog_exit  )
module_init ( watchdog_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( soft_margin  ,
uint  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
module_param ( soft_noboot  ,
int  ,
 
)
module_param ( soft_panic  ,
int  ,
 
)
MODULE_PARM_DESC ( soft_margin  ,
"Watchdog soft_margin in seconds. (0 < soft_margin < 65536, default="__MODULE_STRING(TIMER_MARGIN)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
MODULE_PARM_DESC ( soft_noboot  ,
"Softdog  action,
set to 1 to ignore  reboots,
0 to reboot(default=0)"   
)
MODULE_PARM_DESC ( soft_panic  ,
"Softdog  action,
set to 1 to  panic,
0 to reboot(default=0)"   
)