Moxa TC-6110-T-LX [70/117] The watchdog device ioctl commands

Moxa TC-6110-T-LX [70/117] The watchdog device ioctl commands
TC-6110 Linux User's Manual Programming Guide
5-4
-> ../init.d/watchdog
lrwxrwxrwx 1 root root 18 Jul 16 11:23 /etc/rc6.d/K01watchdog
-> ../init.d/watchdog
The watchdog configuration file is /etc/watchdog.conf. By defauilt, the watchdog daemon is configured to
signal the watchdog every 60 seconds.
watchdog-device = /dev/watchdog
interval = 60
realtime = yes
priority = -10
The watchdog device IOCTL commands
IOCTL WDIOC_GETSUPPORT
Description This returns the support of the card itself
Input None
Output (struct watchdog_info *) arg
Return On success, return 0. Otherwise, return < 0 value.
IOCTL WDIOC_GETSTATUS
Description This returns the status of the card
Input None
Output (int *)arg
Return On success, return 0. Otherwise, return < 0 value.
IOCTL WDIOC_GETBOOTSTATUS
Description This returns the status of the card that was reported at bootup.
Input None
Output (int *)arg)
Return On success, return 0. Otherwise, return < 0 value.
IOCTL WDIOC_SETOPTIONS
Description This lets you set the options of the card. You can either enable or disable the card this way.
Input None
Output
(int *)arg)
Return On success, return 0. Otherwise, return < 0 value.
IOCTL WDIOC_KEEPALIVE
Description This pings the card to tell it not to reset your computer.
Input None
Output None
Return On success, return 0. Otherwise, return < 0 value.
IOCTL WDIOC_SETTIMEOUT
Description Sets the watchdog timeout
Input arg: 1 ~ 255 seconds
Output None
Return On success, return 0. Otherwise, return < 0 value.

Содержание

Похожие устройства

Скачать