Lines Matching full:watchdog
3 * Watchdog Driver Test Program
16 #include <linux/watchdog.h>
41 * the PC Watchdog card to reset its internal timer so it doesn't trigger
65 printf("\nStopping watchdog ticks failed (%d)...\n", errno); in term()
67 printf("\nStopping watchdog ticks...\n"); in term()
74 printf(" -f, --file\t\tOpen watchdog device file\n"); in usage()
75 printf("\t\t\tDefault is /dev/watchdog\n"); in usage()
77 printf(" -b, --bootstatus\tGet last boot status (Watchdog/POR)\n"); in usage()
78 printf(" -d, --disable\t\tTurn off the watchdog timer\n"); in usage()
79 printf(" -e, --enable\t\tTurn on the watchdog timer\n"); in usage()
101 char *file = "/dev/watchdog"; in main()
115 printf("Watchdog device (%s) not found.\n", file); in main()
117 printf("Run watchdog as root.\n"); in main()
119 printf("Watchdog device open failed %s\n", in main()
125 * Validate that `file` is a watchdog device in main()
144 "Watchdog" : "Power-On-Reset"); in main()
152 printf("Watchdog card disabled.\n"); in main()
162 printf("Watchdog card enabled.\n"); in main()
172 printf("Watchdog ping rate set to %u seconds.\n", ping_rate); in main()
178 printf("Watchdog timeout set to %u seconds.\n", flags); in main()
196 printf("Watchdog pretimeout set to %u seconds.\n", flags); in main()
243 printf("Watchdog Ticking Away!\n"); in main()
254 printf("Stopping watchdog ticks failed (%d)...\n", errno); in main()