guest_power_state_notify_register()

Set the characteristics of a power state notification structure

Synopsis:

#include <qvm/guest.h>
void guest_power_state_notify_register(struct guest_power_state_notify *qpnp,
                                       guest_power_state_cmd_t 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
A GPSC_* constant indicating the type of notification request you are setting.
base
An index of a uint64_t array (currently this must be set to 0).
mask
The 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 (see guest_power_state_callback_func_t).
data
A pointer to the user data to pass to the callback function.

Description:

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

Page updated: