---
title: "hv_gic_get_intid(_:_:)"
framework: Hypervisor
role: symbol
role_heading: Function
platforms: [macOS 15.0+]
path: "hypervisor/hv_gic_get_intid(_:_:)"
---

# hv_gic_get_intid(_:_:)

Gets the interrupt ID for reserved interrupts.

## Declaration

```swift
func hv_gic_get_intid(_ interrupt: hv_gic_intid_t, _ intid: UnsafeMutablePointer<UInt32>) -> hv_return_t
```

## Parameters

- `interrupt`: One of the doc://com.apple.hypervisor/documentation/Hypervisor/hv_gic_intid_t values that represents a reserved interrupt.
- `intid`: A pointer to the interrupt number that the framework writes to upon success.

## Return Value

Return Value HV_SUCCESS on success; otherwise, an error code.

## See Also

### Reserved interrupt identifiers

- [HV_GIC_INT_MAINTENANCE](hypervisor/hv_gic_int_maintenance.md)
- [HV_GIC_INT_PERFORMANCE_MONITOR](hypervisor/hv_gic_int_performance_monitor.md)
- [HV_GIC_INT_EL1_PHYSICAL_TIMER](hypervisor/hv_gic_int_el1_physical_timer.md)
- [HV_GIC_INT_EL2_PHYSICAL_TIMER](hypervisor/hv_gic_int_el2_physical_timer.md)
- [HV_GIC_INT_EL1_VIRTUAL_TIMER](hypervisor/hv_gic_int_el1_virtual_timer.md)
