Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
watchdog_ops Struct Reference

#include <watchdog.h>

Data Fields

struct moduleowner
 
int(* start )(struct watchdog_device *)
 
int(* stop )(struct watchdog_device *)
 
int(* ping )(struct watchdog_device *)
 
unsigned int(* status )(struct watchdog_device *)
 
int(* set_timeout )(struct watchdog_device *, unsigned int)
 
unsigned int(* get_timeleft )(struct watchdog_device *)
 
void(* ref )(struct watchdog_device *)
 
void(* unref )(struct watchdog_device *)
 
long(* ioctl )(struct watchdog_device *, unsigned int, unsigned long)
 

Detailed Description

struct watchdog_ops - The watchdog-devices operations

: The module owner. : The routine for starting the watchdog device. : The routine for stopping the watchdog device. : The routine that sends a keepalive ping to the watchdog device. : The routine that shows the status of the watchdog device. :The routine for setting the watchdog devices timeout value. :The routine that get's the time that's left before a reset. The ref operation for dyn. allocated watchdog_device structs : The unref operation for dyn. allocated watchdog_device structs : The routines that handles extra ioctl calls.

The watchdog_ops structure contains a list of low-level operations that control a watchdog device. It also contains the module that owns these operations. The start and stop function are mandatory, all other functions are optonal.

Definition at line 38 of file watchdog.h.

Field Documentation

unsigned int(* get_timeleft)(struct watchdog_device *)

Definition at line 47 of file watchdog.h.

long(* ioctl)(struct watchdog_device *, unsigned int, unsigned long)

Definition at line 50 of file watchdog.h.

struct module* owner

Definition at line 39 of file watchdog.h.

Definition at line 44 of file watchdog.h.

Definition at line 48 of file watchdog.h.

int(* set_timeout)(struct watchdog_device *, unsigned int)

Definition at line 46 of file watchdog.h.

int(* start)(struct watchdog_device *)

Definition at line 41 of file watchdog.h.

unsigned int(* status)(struct watchdog_device *)

Definition at line 45 of file watchdog.h.

Definition at line 42 of file watchdog.h.

Definition at line 49 of file watchdog.h.


The documentation for this struct was generated from the following file: