Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/watchdog.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | |||||
#include <sys/eventhandler.h> | #include <sys/eventhandler.h> | ||||
typedef void (*watchdog_fn)(void *, u_int, int *); | typedef void (*watchdog_fn)(void *, u_int, int *); | ||||
EVENTHANDLER_DECLARE(watchdog_list, watchdog_fn); | EVENTHANDLER_DECLARE(watchdog_list, watchdog_fn); | ||||
u_int wdog_kern_last_timeout(void); | u_int wdog_kern_last_timeout(void); | ||||
int wdog_kern_pat(u_int utim); | int wdog_kern_pat(u_int utim); | ||||
/* | |||||
* The following function pointer is used to attach a software watchdog | |||||
* if no hardware watchdog has been attached, and if the software module | |||||
* has initialized the function pointer. | |||||
*/ | |||||
extern void (*wdog_software_attach)(void); | |||||
#endif | #endif | ||||
#endif /* _SYS_WATCHDOG_H */ | #endif /* _SYS_WATCHDOG_H */ |