---
title: "hv_vcpu_get_vtimer_mask(_:_:)"
framework: hypervisor
role: symbol
role_heading: Function
path: "hypervisor/hv_vcpu_get_vtimer_mask(_:_:)"
---

# hv_vcpu_get_vtimer_mask(_:_:)

Gets the virtual timer mask.

## Declaration

```swift
func hv_vcpu_get_vtimer_mask(_ vcpu: hv_vcpu_t, _ vtimer_is_masked: UnsafeMutablePointer<Bool>) -> hv_return_t
```

## Parameters

- `vcpu`: The ID of the vCPU instance.
- `vtimer_is_masked`: The value of the mask.

## Return Value

Return Value HV_SUCCESS if the operation was successful, otherwise an error code specified in hv_return_t.

## See Also

### Timer functions

- [hv_vcpu_set_vtimer_mask(_:_:)](hypervisor/hv_vcpu_set_vtimer_mask(_:_:).md)
- [hv_vcpu_get_vtimer_offset(_:_:)](hypervisor/hv_vcpu_get_vtimer_offset(_:_:).md)
- [hv_vcpu_set_vtimer_offset(_:_:)](hypervisor/hv_vcpu_set_vtimer_offset(_:_:).md)
