Re: [PATCH][RFC] Proposal for a new watchdog interface using sysfs

Daniel Pittman (daniel@rimspace.net)
Thu, 13 Feb 2003 15:27:14 +1100


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/