---
title: "DADiskCreateFromVolumePath(_:_:_:)"
framework: Disk Arbitration
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.1+, macOS 10.7+]
path: "diskarbitration/dadiskcreatefromvolumepath(_:_:_:)"
---

# DADiskCreateFromVolumePath(_:_:_:)

Creates a new disk object.

## Declaration

```swift
func DADiskCreateFromVolumePath(_ allocator: CFAllocator?, _ session: DASession, _ path: CFURL) -> DADisk?
```

## Parameters

- `allocator`: The allocator object to be used to allocate memory.
- `session`: The DASession in which to contact Disk Arbitration.
- `path`: The BSD mount point.

## Return Value

Return Value A reference to a new DADisk.

## Discussion

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().

## See Also

### Miscellaneous

- [DADiskCopyDescription(_:)](diskarbitration/dadiskcopydescription(_:).md)
- [DADiskCopyIOMedia(_:)](diskarbitration/dadiskcopyiomedia(_:).md)
- [DADiskCopyWholeDisk(_:)](diskarbitration/dadiskcopywholedisk(_:).md)
- [DADiskCreateFromBSDName(_:_:_:)](diskarbitration/dadiskcreatefrombsdname(_:_:_:).md)
- [DADiskCreateFromIOMedia(_:_:_:)](diskarbitration/dadiskcreatefromiomedia(_:_:_:).md)
- [DADiskGetBSDName(_:)](diskarbitration/dadiskgetbsdname(_:).md)
- [DADiskGetTypeID()](diskarbitration/dadiskgettypeid().md)
