#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.
|
| 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) |
|
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
MODULE_AUTHOR |
( |
"Alan Cox" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Software Watchdog Device Driver" |
| ) |
|
module_exit |
( |
watchdog_exit |
| ) |
|
module_init |
( |
watchdog_init |
| ) |
|
module_param |
( |
soft_margin |
, |
|
|
uint |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
soft_noboot |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
soft_panic |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
soft_margin |
, |
|
|
"Watchdog soft_margin in seconds. (0 < soft_margin < 65536, default="__MODULE_STRING(TIMER_MARGIN)")" |
|
|
) |
| |
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)" |
|
|
) |
| |