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

# hv_gic_get_spi_interrupt_range(_:_:)

Gets the range of shared peripheral interrupts (SPIs) the generic interrupt controller supports.

## Declaration

```swift
func hv_gic_get_spi_interrupt_range(_ spi_intid_base: UnsafeMutablePointer<UInt32>, _ spi_intid_count: UnsafeMutablePointer<UInt32>) -> hv_return_t
```

## Parameters

- `spi_intid_base`: A pointer to the lowest SPI number that the framework writes to upon success.
- `spi_intid_count`: A pointer to the number of SPIs supported that the framework writes to upon success.

## Return Value

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

## See Also

### Getting GIC device parameters

- [hv_gic_get_redistributor_region_size(_:)](hypervisor/hv_gic_get_redistributor_region_size(_:).md)
- [hv_gic_get_redistributor_size(_:)](hypervisor/hv_gic_get_redistributor_size(_:).md)
- [hv_gic_get_distributor_size(_:)](hypervisor/hv_gic_get_distributor_size(_:).md)
- [hv_gic_get_distributor_base_alignment(_:)](hypervisor/hv_gic_get_distributor_base_alignment(_:).md)
- [hv_gic_get_redistributor_base_alignment(_:)](hypervisor/hv_gic_get_redistributor_base_alignment(_:).md)
- [hv_gic_get_msi_region_base_alignment(_:)](hypervisor/hv_gic_get_msi_region_base_alignment(_:).md)
- [hv_gic_get_msi_region_size(_:)](hypervisor/hv_gic_get_msi_region_size(_:).md)
