qvm_msgblock_oneshot()

Set a maximum message timeout on the next MsgSend

Synopsis:

#include <qvm/utils.h>
int qvm_msgblock_oneshot(const vdev_t *vdp,
                         unsigned mult)

Arguments:

vdp
A pointer to a virtual device (vdev) or NULL for all vdevs in this VM.
mult
The multiplier of the configured timeout.

Description:

This function sets the maximum message timeout for the next MsgSend (i.e., a single MsgSend) only.

To set the maximum message timeout for a block of multiple MsgSends, call qvm_msgblock_start().

To configure default timeouts, use the qvm set option's message-block-timeout and vdev-message-block-timeout options (see the set section in the "VM Configuration Reference" chapter in the User's Guide).

Returns:

EOK if successful; otherwise an errno value.