lkml.org 
[lkml]   [2003]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH][RFC] Proposal for a new watchdog interface using sysfs
From
Date
On 12 Feb 2003, Rusty Lynch wrote:
> The following is a proposal for a new sysfs based watchdog interface
> to be used as a replacement for the current char device w/ ioctl api
> as described in Documentation/watchdog-api.txt.

[...]

> Where each these files to the following ==>
>
> start (RO)
> - show: starts watchdog count

This would be much better as a store -- that way 'cat /.../watchdog0/*'
will not activate the watchdog. A more deliberate action is safer for
forgetful admins, such as me.

[...]

> status (RO)
> - show: prints the current status value
>
> bootstatus (RO)
> - show: same as 'status', but valid for just after the last reboot.

[...]

> enable (RW)
> - show: prints 0 or 1 to indicate if the wdt is enabled
> - store: expects 0 or 1 to disable or enable the wdt

Isn't this the same information as the 'status' and 'start' members?

Daniel

--
A cathedral, a wave of a storm, a dancer's leap,
never turn out to be as high as we had hoped.
-- Marcel Proust
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.093 / U:0.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site