wdog_control()

Parse the watchdog vdev from the VM configuration, and control the action taken when the watchdog timer triggers

Synopsis:

#include <qvm/wdog.h>
int wdog_control(struct wdog_state *wds,
                 unsigned ctrl,
                 const char *arg)

Arguments:

wds
A pointer to a wdog_state structure with the watchdog state.
ctrl
The operation to perform (VDEV_CTRL_*).
arg
Parameters for the operation.

Library:

Provided by qvm; no external library is required.

Description:

For more details about the arguments, refer to the wdt-ib700 and wdt-sp805 vdevs in the QNX Hypervisor for Safety 2.0 User's Guide.

Returns:

Always EOK.