guest_timer_notify()

Request notification when the specified number of clock cycles have elapsed in the guest

Synopsis:

#include <qvm/guest.h>
int guest_timer_notify(struct guest_timer *vtp,
                       const struct guest_timer_data *tdp,
                       uint64_t incr)

Arguments:

vtp
A pointer to a guest timer; this is returned by a call to guest_timer_create().
tdp
The last notification information if the timer is repeating; NULL if the timer is single use or used for the first time.
incr
The number of clock cycles to wait before the timer should send its next notification.

Description:

This function requests notification when a given number of clock cycles have elapsed in the guest. The actual time of a wait specified by incr depends on the clock frequency guest_timer_create() stored in the resolutionp argument given to it.

Returns:

EOK if successful, otherwise errno.