<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/OSAction/GetReference",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@S@OSAction@F@GetReference#"
  },
  "title" : "GetReference"
}
-->

# GetReference

Returns a pointer to any additional memory allocated by the action object on your behalf.

```
void * GetReference();
```

## Return Value

A pointer to the additional storage you requested at creation time. This method returns `NULL` if you passed `0` to the `referenceSize` parameter of the <doc://com.apple.documentation/documentation/kernel/osaction/3438206-create> method. It also returns `NULL` if the action object doesn’t belong to the current process.

## Discussion

The action object zero-initializes the memory it allocates. Only the process that owns the action object may access the memory.

---

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)