Dear Sir,
We try to run the userspace application that can be found in Linux Kernel at samples/watchdog/watchdog-simple.c.
but it just enable the watchdog & always reboot after 30 seconds,
unfortunately, after our test, the watchdog API does not work
ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
## to get/set timeout seconds,
ioctl(fd, WDIOC_GETTIMELEFT, &timeleft); ## to get left seconds
or
echo 'V' > /dev/watchdog ## to send heartbeat
Could you please provide a sample code that would enable/disable watchdog, get/set the timeout seconds?
Regards, Jason