The watchdog timer API is summarized in the following table:
Function |
Description |
---|---|
wdt_pat() |
Pat (reload) the watchdog timer |
wdt_alloc() |
Allocate a watchdog timer |
wdt_realloc() |
Reallocate a watchdog timer |
wdt_free() |
Disarm and free a watchdog timer |
wdt_get_maxinterval() |
Get the maximum limit (hardware) of a watchdog |
wdt_set_interval() |
Set the interval duration of a watchdog |
wdt_get_interval() |
Get the interval duration of a watchdog |
wdt_arm() |
Arm a watchdog |
wdt_disarm() |
Disarm a watchdog |
wdt_is_armed() |
Check whether a watchdog is armed |
wdt_startup_commit() |
Tells the system the initialiazation phase is over |
wdt_shutdown() |
Tells the system to start patting for shut down |
The wdt_realloc() function enables a process to regain control over a watchdog allocated by a possibly dead process.