Moxa V2403-C7-W-T [54/90] Watchdog device ioctl commands

Moxa V2403-C7-W-T [54/90] Watchdog device ioctl commands
V2403 Series Linux Software Programmer’s Guide
4-7
Use the following command to remove it from run-level:
moxa@Moxa:~# sudo insserv -r watchdog
Check the run level removement.
moxa@Moxa:~# ls -l /etc/rc?.d/*watchdog*
ls: cannot access /etc/rc?.d/*watchdog*: No such file or directory
moxa@Moxa:~#
Watchdog Device IOCTL Commands
IOCTL WDIOC_GETSUPPORT
Description Returns the support of the card itself
Input None
Output (struct watchdog_info *) arg
Return On success, returns 0. Otherwise, returns a value < 0.
IOCTL WDIOC_GETSTATUS
Description Returns the status of the card
Input None
Output (int *)arg
Return On success, returns 0. Otherwise, returns a value < 0.
IOCTL WDIOC_GETBOOTSTATUS
Description Returns the status of the card that was reported at bootup.
Input None
Output (int *)arg)
Return On success, returns 0. Otherwise, returns a value < 0.
IOCTL WDIOC_SETOPTIONS
Description Lets you set the options of the card. You can either enable or disable the card.
Input None
Output (int *)arg)
Return On success, returns 0. Otherwise, returns a value < 0.
IOCTL WDIOC_KEEPALIVE
Description Pings the card to tell it not to reset your computer.
Input None
Output
None
Return On success, returns 0. Otherwise, returns a value < 0.
IOCTL WDIOC_SETTIMEOUT
Description Sets the watchdog timeout
Input arg: 1 to 255 seconds
Output None
Return On success, returns 0. Otherwise, returns a value < 0.
IOCTL WDIOC_GETTIMEOUT
Description Gets the current watchdog timeout.
Input None
Output arg: 1 to 255 seconds
Return On success, returns 0. Otherwise, returns a value < 0.

Содержание

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

Скачать