Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Watchdog timer
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Restarting=== [[File:WatchdogWindow.png|thumb|300px|Some watchdog timers only allow kicks during a time window. Kicks occurring outside the window have no effect on the timer and may be treated as faults.]] The act of restarting a watchdog timer is commonly referred to as ''kicking''{{efn|name=fn1|Various terms are used for the act of restarting a watchdog timer. Some (e.g. ''kick'', ''pet'', ''feed'', ''tickle'') draw a connection to [[guard dog]]s, whereas others (e.g. ''tag'', ''ping'', ''reset'') do not. This article uses ''kick'' for consistency.}} the watchdog.<ref name="ESD"/><ref name="SMSWT"/> In electronic watchdogs, kicking is typically done by writing to a watchdog control [[Memory-mapped I/O|port]] or by setting a particular bit in a [[hardware register|register]]. Alternatively, some tightly coupled{{efn|A ''tightly coupled'' watchdog timer is effectively a built-in extension of the processor and, as such, may be accessed by special [[machine language]] instructions which are specific to it.}} watchdog timers are kicked by executing a special [[machine language]] instruction. An example of this is the CLRWDT (clear watchdog timer) instruction found in the instruction set of some [[PIC microcontroller]]s. In computers that are running [[operating system]]s, electronic watchdog restarts are usually invoked through a [[device driver]]. For example, in the [[Linux operating system]], a [[user space]] program will kick the watchdog by interacting with the watchdog device driver, typically by writing a zero character to {{mono|/dev/watchdog}} or by calling a KEEPALIVE [[ioctl]].<ref name="LinuxWatchdogApi"/> The device driver, which serves to abstract the watchdog hardware from user space programs, may also be used to configure the time-out period and start and stop the timer. Some watchdog timers will only allow kicks during a specific time window. The window timing is usually relative to the previous kick or, if the watchdog has not yet been kicked, to the moment the watchdog was enabled. The window begins after a delay following the previous kick, and ends after a further delay. If the computer attempts to kick the watchdog before or after the window, the watchdog will not be restarted, and in some implementations this will be treated as a fault and trigger corrective action.<ref name="oracle"/>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)