<!--
{
  "availability" : [
    "macOS: 15.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Hypervisor",
  "identifier" : "/documentation/Hypervisor/hv_vcpu_get_sme_p_reg(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Hypervisor"
    ],
    "preciseIdentifier" : "c:@F@hv_vcpu_get_sme_p_reg"
  },
  "title" : "hv_vcpu_get_sme_p_reg(_:_:_:_:)"
}
-->

# hv_vcpu_get_sme_p_reg(_:_:_:_:)

Returns the value of a vCPU P predicate register in streaming Scalable Vector Extension (SVE) mode.

```
func hv_vcpu_get_sme_p_reg(_ vcpu: hv_vcpu_t, _ reg: hv_sme_p_reg_t, _ value: UnsafeMutablePointer<UInt8>, _ length: Int) -> hv_return_t
```

## Parameters

`vcpu`

The vCPU ID of the vCPU instance

`reg`

ID of the P predicate register.

`value`

The pointer to the retrieved register value.

`length`

The length of the provided value storage, in bytes.

## Return Value

`HV_SUCCESS` on success; otherwise an error code.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)