vdev_pulse()

Fill in a sigevent structure to invoke a vdev pulse routine

Synopsis:

#include <qvm/vdev-core.h>
void vdev_pulse(vdev_t *vdp,
                const int8_t code,
                int priority,
                struct sigevent *ev,
                const int coid)

Arguments:

vdp
A pointer to the vdev to which the pulse is delivered.
code
The pulse code to be passed to the vdev pulse routine.
priority
The pulse priority.
ev
The sigevent structure to be filled in.
coid
The server coid. This can also be -1 for any server, or QMRE_UNREG_EVENT to not register the message event.

Description:

This function fills in a sigevent structure to invoke a vdev pulse routine when the event is delivered. You can call this function after the VDEV_CTRL_OPTIONS_START callback has run.

Page updated: