<!--
{
  "availability" : [
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DiskArbitration",
  "identifier" : "/documentation/DiskArbitration/DADiskCopyWholeDisk(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Disk Arbitration"
    ],
    "preciseIdentifier" : "c:@F@DADiskCopyWholeDisk"
  },
  "title" : "DADiskCopyWholeDisk(_:)"
}
-->

# DADiskCopyWholeDisk(_:)

Obtain the associated whole disk object for the specified disk.

```
func DADiskCopyWholeDisk(_ disk: DADisk) -> DADisk?
```

## Parameters

`disk`

The disk object.

## Return Value

The disk’s associated whole disk object.

## Discussion

The caller of this function receives a reference to the returned object. The caller also implicitly retains the object and is responsible for releasing it with CFRelease().

---

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)