Clarify the definition of the watchdog kernel interface by moving a sentence up

to the sentence it references.
This commit is contained in:
Nick Hibma 2007-03-27 21:23:20 +00:00
parent 09dfbddbda
commit 36eab02467
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167953

View File

@ -50,23 +50,21 @@ If
.Fa cmd
is zero, the watchdog must be disabled and the
.Fa error
argument left untouched.
argument left untouched. If the watchdog cannot be disabled, the
.Fa error
argument must be set to
.Dv EOPNOTSUPP .
.Pp
Else the watchdog should be reset and configured to a timeout of
.Pq 1 << Pq Fa cmd No & Dv WD_INTERVAL
nanoseconds or larger and the
.Fa error
argument be set to zero.
argument be set to zero to signal arming of a watchdog.
.Pp
If the watchdog cannot be configured to the proposed timeout, it
must be disabled and the
.Fa error
argument set to
.Dv EINVAL .
If the watchdog cannot be disabled, the
.Fa error
argument must be set to
.Dv EOPNOTSUPP .
argument left as is (to avoid hiding the arming of another watchdog).
.Pp
There is no specification of what the watchdog should do when it
times out, but a hardware reset or similar