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

# hv_vcpu_get_serror(_:_:)

## Declaration

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

## Parameters

- `vcpu`: ID of the vcpu instance.
- `pending`: Returns whether the SError is pending or not.

## Discussion

Discussion Gets pending SError for a vcpu. Must be called by the owning thread.
