guest_instr_register()
Register a callback function to invoke when the guest executes a particular instruction
Synopsis:
#include <qvm/guest.h>int guest_instr_register(vdev_t *vdp,
guest_instr_type_t git,
unsigned qualifier,
guest_instr_callback_func_t *func)Arguments:
- vdp
- A pointer to an associated vdev.
- git
- The guest instruction type. This can be ORed with GIT_FLAG_NO_QUALIFIER.
- qualifier
- The guest instruction qualification. This is ignored if GIT_FLAG_NO_QUALIFIER is used in git.
- func
- A pointer to the function to invoke (see guest_instr_callback_func_t).
Returns:
EOK if registration worked; otherwise, an error code.
Page updated:
