Function

DADiskClaim(_:_:_:_:_:_:)

Claims the specified disk object for exclusive use.

Declaration

func DADiskClaim(_ disk: DADisk, _ options: DADiskClaimOptions, _ release: DADiskClaimReleaseCallback?, _ releaseContext: UnsafeMutableRawPointer?, _ callback: DADiskClaimCallback?, _ callbackContext: UnsafeMutableRawPointer?)

Parameters

disk

The disk object.

options

The claim options.

release

The callback function to call when the claim is to be released.

releaseContext

The user-defined context parameter to pass to the callback function.

callback

The callback function to call once the claim completes.

callbackContext

The user-defined context parameter to pass to the callback function.

See Also

Miscellaneous

func DADiskGetOptions(DADisk) -> DADiskOptions

Obtains the options for the specified disk.

func DADiskIsClaimed(DADisk) -> Bool

Reports whether or not the disk is claimed.

func DADiskUnclaim(DADisk)

Unclaims the specified disk object.

func DARegisterDiskPeekCallback(DASession, CFDictionary?, CFIndex, DADiskPeekCallback, UnsafeMutableRawPointer?)

Registers a callback function to be called whenever a disk has been probed.