Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
watchdog_core.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/watchdog.h>
#include <linux/init.h>
#include <linux/idr.h>
#include <linux/err.h>
#include "watchdog_core.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

int watchdog_register_device (struct watchdog_device *wdd)
 
 EXPORT_SYMBOL_GPL (watchdog_register_device)
 
void watchdog_unregister_device (struct watchdog_device *wdd)
 
 EXPORT_SYMBOL_GPL (watchdog_unregister_device)
 
 subsys_initcall (watchdog_init)
 
 module_exit (watchdog_exit)
 
 MODULE_AUTHOR ("Alan Cox <[email protected]>")
 
 MODULE_AUTHOR ("Wim Van Sebroeck <[email protected]>")
 
 MODULE_DESCRIPTION ("WatchDog Timer Driver Core")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 29 of file watchdog_core.c.

Function Documentation

EXPORT_SYMBOL_GPL ( watchdog_register_device  )
EXPORT_SYMBOL_GPL ( watchdog_unregister_device  )
MODULE_AUTHOR ( "Alan Cox <[email protected]>"  )
MODULE_AUTHOR ( "Wim Van Sebroeck <[email protected]>"  )
MODULE_DESCRIPTION ( "WatchDog Timer Driver Core"  )
module_exit ( watchdog_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( watchdog_init  )
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.