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,
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 (for details, see guest_power_state_cmd).
- base
- An index of a 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 (see guest_power_state_callback_func_t).
- data
- A pointer to the user data to pass to the callback function.