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

# hv_capability(_:_:)

Gets the value of capabilities of the system.

## Declaration

```swift
func hv_capability(_ capability: hv_capability_t, _ value: UnsafeMutablePointer<UInt64>) -> hv_return_t
```

## Parameters

- `capability`: The capability to request.
- `value`: The value for capability, on output.

## Return Value

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

## Discussion

Discussion Intel-based Mac only.

## See Also

### Virtual machine management

- [hv_vm_create(_:)](hypervisor/hv_vm_create(_:).md)
- [hv_vm_destroy()](hypervisor/hv_vm_destroy().md)
- [hv_vm_options_t](hypervisor/hv_vm_options_t.md)
- [hv_capability_t](hypervisor/hv_capability_t.md)
