Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.46 KB

vcpu_interrupt.md

File metadata and controls

62 lines (39 loc) · 1.46 KB

zx_vcpu_interrupt

NAME

vcpu_interrupt - raise an interrupt on a VCPU

SYNOPSIS

#include <zircon/syscalls.h>

zx_status_t zx_vcpu_interrupt(zx_handle_t handle, uint32_t vector);

DESCRIPTION

zx_vcpu_interrupt() raises an interrupt of vector on handle, and may be called from any thread.

RIGHTS

handle must be of type ZX_OBJ_TYPE_VCPU and have ZX_RIGHT_SIGNAL.

RETURN VALUE

zx_vcpu_interrupt() returns ZX_OK on success. On failure, an error value is returned.

ERRORS

ZX_ERR_ACCESS_DENIED handle does not have the ZX_RIGHT_SIGNAL right.

ZX_ERR_BAD_HANDLE handle is an invalid handle.

ZX_ERR_OUT_OF_RANGE vector is outside of the range interrupts supported by the current architecture.

ZX_ERR_WRONG_TYPE handle is not a handle to a VCPU.

SEE ALSO