Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
watchdog.h File Reference
#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/cdev.h>
#include <uapi/linux/watchdog.h>

Go to the source code of this file.

Data Structures

struct  watchdog_ops
 
struct  watchdog_device
 

Macros

#define WDOG_ACTIVE   0 /* Is the watchdog running/active */
 
#define WDOG_DEV_OPEN   1 /* Opened via /dev/watchdog ? */
 
#define WDOG_ALLOW_RELEASE   2 /* Did we receive the magic char ? */
 
#define WDOG_NO_WAY_OUT   3 /* Is 'nowayout' feature set ? */
 
#define WDOG_UNREGISTERED   4 /* Has the device been unregistered */
 
#define WATCHDOG_NOWAYOUT   0
 
#define WATCHDOG_NOWAYOUT_INIT_STATUS   0
 

Functions

int watchdog_register_device (struct watchdog_device *)
 
void watchdog_unregister_device (struct watchdog_device *)
 

Macro Definition Documentation

#define WATCHDOG_NOWAYOUT   0

Definition at line 104 of file watchdog.h.

#define WATCHDOG_NOWAYOUT_INIT_STATUS   0

Definition at line 105 of file watchdog.h.

#define WDOG_ACTIVE   0 /* Is the watchdog running/active */

Definition at line 93 of file watchdog.h.

#define WDOG_ALLOW_RELEASE   2 /* Did we receive the magic char ? */

Definition at line 95 of file watchdog.h.

#define WDOG_DEV_OPEN   1 /* Opened via /dev/watchdog ? */

Definition at line 94 of file watchdog.h.

#define WDOG_NO_WAY_OUT   3 /* Is 'nowayout' feature set ? */

Definition at line 96 of file watchdog.h.

#define WDOG_UNREGISTERED   4 /* Has the device been unregistered */

Definition at line 97 of file watchdog.h.

Function Documentation

int watchdog_register_device ( struct watchdog_device wdd)

watchdog_register_device() - register a watchdog device : watchdog device

Register a watchdog device with the kernel so that the watchdog timer can be accessed from userspace.

A zero is returned on success and a negative errno code for failure.

Definition at line 55 of file watchdog_core.c.

void watchdog_unregister_device ( struct watchdog_device wdd)

watchdog_unregister_device() - unregister a watchdog device : watchdog device to unregister

Unregister a watchdog device that was previously successfully registered with watchdog_register_device().

Definition at line 128 of file watchdog_core.c.