guest_power_state_notify_register()

Set the characteristics of a notification structure

Synopsis:

#include <qvm/guest.h>
void guest_power_state_notify_register(struct guest_power_state_notify *qpnp,
                                       enum guest_power_state_cmd cmd,
                                       unsigned base,
                                       uint64_t mask,
                                       uint64_t bits,
                                       guest_power_state_callback_func_t *func,
                                       void *data)

Arguments:

qpnp
A pointer to the notification structure whose characterisitics need to be set.
cmd
The type of notification request you are setting: waiting/off/both, or to/from/both.
base
An index of an uint64_t array (currently always 0).
mask
Mask to apply to the guest power state set before comparison.
bits
The value to compare to the guest power state set.
func
A pointer to the function to call when the notification conditions are met.
data
A pointer to the user data to pass to the callback function.

Library:

Provided by qvm; no external library is required.

Description:

Use this function to set the characteristics of a notification structure created by guest_power_state_notify_create().