Interface DiskArbitration

All Superinterfaces:
Library

public interface DiskArbitration extends Library
Disk Arbitration is a low-level framework based on Core Foundation. The Disk Arbitration framework provides the ability to get various pieces of information about a volume.
  • Field Details

  • Method Details

    • DASessionCreate

      Creates a new session. 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 CoreFoundation.CFRelease(CoreFoundation.CFTypeRef).

      Parameters:
      alloc - The allocator object to be used to allocate memory.
      Returns:
      A reference to a new DASession.
    • DADiskCreateFromBSDName

      Creates a new disk object. 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 CoreFoundation.CFRelease(CoreFoundation.CFTypeRef).

      Parameters:
      alloc - The allocator object to be used to allocate memory.
      session - The DASession in which to contact Disk Arbitration.
      diskName - the BSD device name.
      Returns:
      A reference to a new DADisk.
    • DADiskCreateFromIOMedia

      Creates a new disk object. 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 CoreFoundation.CFRelease(CoreFoundation.CFTypeRef).

      Parameters:
      allocator - The allocator object to be used to allocate memory.
      session - The DASession in which to contact Disk Arbitration.
      media - The I/O Kit media object.
      Returns:
      A reference to a new DADisk.
    • DADiskCopyDescription

      Obtains the Disk Arbitration description of the specified disk. This function will contact Disk Arbitration to acquire the latest description of the specified disk, unless this function is called on a disk object passed within the context of a registered callback, in which case the description is current as of that callback event.

      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 CoreFoundation.CFRelease(CoreFoundation.CFTypeRef).

      Parameters:
      disk - The DADisk for which to obtain the Disk Arbitration description.
      Returns:
      The disk's Disk Arbitration description.
    • DADiskGetBSDName

      String DADiskGetBSDName(DiskArbitration.DADiskRef disk)
      Obtains the BSD device name for the specified disk.
      Parameters:
      disk - The DADisk for which to obtain the BSD device name.
      Returns:
      The disk's BSD device name.