Contents

DADiskCreateFromVolumePath(_:_:_:)

Creates a new disk object.

Declaration

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

A reference to a new DADisk.

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