Skip to contentSkip to conversation

Patches to include/linux/watchdog.h to document the functions

PATCH Corey Minyard 1 participant 1 message Jan 25, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The include/linux/watchdog.h is, well, a little hard to read and understand. I have attached a patch that documents this as best as I can understand it. It also add a few small things. It would be nice to get all the watchdogs to conform to one interface for things like setting the timeout, they all seem to have their own unique ways of doing a lot of things.

-Corey

drivers/char/pcwd.c renamed from drivers/char/pcwd.c.watchdog +2 -0
@@ -250,6 +250,8 @@
 		return -ENOTTY;
 
 	case WDIOC_GETSUPPORT:
+		if (supports_temp)
+			ident.options |= WDIOF_GETTEMP;
 		i = copy_to_user((void*)arg, &ident, sizeof(ident));
 		return i ? -EFAULT : 0;
 
include/linux/watchdog.h renamed from include/linux/watchdog.h.watchdog +53 -9

84 lines not on this page · raw message