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