Contents

hv_gic_get_redistributor_reg(_:_:_:)

Read a generic interrupt controller (GIC) redistributor register.

Declaration

func hv_gic_get_redistributor_reg(_ vcpu: hv_vcpu_t, _ reg: hv_gic_redistributor_reg_t, _ value: UnsafeMutablePointer<UInt64>) -> hv_return_t

Parameters

  • vcpu:

    The redistributor block for the vCPU.

  • reg:

    The enumeration value that represents the redistributor register.

  • value:

    A pointer to redistributor register value that the framework writes to upon success.

Return Value

HV_SUCCESS on success; otherwise, an error code.

Discussion

GIC redistributor register enumeration values are equal to the device register offsets that the ARM GIC v3 specification defines. Alternatively, the client can use the offset value while looping through large register arrays.

See Also

Getting and setting registers