On 10/17/2016 03:42 AM, Robert P. J. Day wrote:
continuing with annoying pedantry, there's this from Documentation/watchdog/watchdog-kernel-api.txt: The list of watchdog operations is defined as: struct watchdog_ops { struct module *owner; /* mandatory operations */ int (*start)(struct watchdog_device *); int (*stop)(struct watchdog_device *); /* optional operations */ ... snip ... followed shortly by: Some operations are mandatory and some are optional. The mandatory operations are: * start: this is a pointer to the routine that starts the watchdog timer device. The routine needs a pointer to the watchdog timer device structure as a parameter. It returns zero on success or a negative errno code for failure. Not all watchdog timer hardware supports the same functionality. That's why all other routines/operations are optional. They only need to be provided if they are supported. These optional routines/operations are: * stop: with this routine the watchdog timer device is being stopped. ... snip ... so the first snippet implies that stop() is mandatory, while the subsequent snippet describes it as optional. thoughts?
stop used to be mandatory, but isn't anymore. I missed updating the structure. Guenter
rday p.s. i am currently editing this doc file, and will submit an updated version with little fixes throughout.
-- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html