Fill in a sigevent structure to invoke a vdev pulse routine on event delivery
Synopsis:
#include <qvm/vdev-core.h>
void vdev_pulse(vdev_t *vdp,
int8_t code,
int priority,
struct sigevent *ev,
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. -1 for any server, or QMRE_UNREG_EVENT.
Library:
Provided by qvm; no external library is required.
Description:
Call after the VDEV_CTRL_OPTIONS_START callback in your vdev's *control() function.