Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xen_wdt.c File Reference
#include <linux/bug.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/hrtimer.h>
#include <linux/kernel.h>
#include <linux/ktime.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/watchdog.h>
#include <xen/xen.h>
#include <asm/xen/hypercall.h>
#include <xen/interface/sched.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "wdt"
 
#define DRV_VERSION   "0.01"
 
#define WATCHDOG_TIMEOUT   60 /* in seconds */
 

Functions

 module_param (timeout, uint, S_IRUGO)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds ""(default="__MODULE_STRING(WATCHDOG_TIMEOUT)")")
 
 module_param (nowayout, bool, S_IRUGO)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_init (xen_wdt_init_module)
 
 module_exit (xen_wdt_cleanup_module)
 
 MODULE_AUTHOR ("Jan Beulich <[email protected]>")
 
 MODULE_DESCRIPTION ("Xen WatchDog Timer Driver")
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define DRV_NAME   "wdt"

Definition at line 14 of file xen_wdt.c.

#define DRV_VERSION   "0.01"

Definition at line 15 of file xen_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 12 of file xen_wdt.c.

#define WATCHDOG_TIMEOUT   60 /* in seconds */

Definition at line 41 of file xen_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Jan Beulich <[email protected]>"  )
MODULE_DESCRIPTION ( "Xen WatchDog Timer Driver"  )
module_exit ( xen_wdt_cleanup_module  )
module_init ( xen_wdt_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
uint  ,
S_IRUGO   
)
module_param ( nowayout  ,
bool  ,
S_IRUGO   
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds ""(default="__MODULE_STRING(WATCHDOG_TIMEOUT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
MODULE_VERSION ( DRV_VERSION  )