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

# hv_gic_state_create()

Create a generic interrupt controller (GIC) state object.

## Declaration

```swift
func hv_gic_state_create() -> hv_gic_state_t
```

## Return Value

Return Value A new GIC state object that represents the current GIC state.

## Discussion

Discussion Release this object with os_release when it’s no longer needed.

## See Also

### Getting and setting the GIC’s state

- [hv_gic_set_state(_:_:)](hypervisor/hv_gic_set_state(_:_:).md)
- [hv_gic_state_get_size(_:_:)](hypervisor/hv_gic_state_get_size(_:_:).md)
- [hv_gic_state_get_data(_:_:)](hypervisor/hv_gic_state_get_data(_:_:).md)
- [hv_gic_state_t](hypervisor/hv_gic_state_t.md)
- [OS_hv_gic_state](hypervisor/os_hv_gic_state.md)
