Class DiskArbitration.DADiskRef

java.lang.Object
oshi.ffm.mac.CoreFoundation.CFTypeRef
oshi.ffm.mac.DiskArbitration.DADiskRef
Enclosing interface:
DiskArbitration

public static class DiskArbitration.DADiskRef extends CoreFoundation.CFTypeRef
Type of a reference to DADisk instances.
  • Constructor Details

  • Method Details

    • createFromBSDName

      public static DiskArbitration.DADiskRef createFromBSDName(CoreFoundation.CFAllocatorRef allocator, DiskArbitration.DASessionRef session, String bsdName)
      Creates a new disk object from a BSD device name.
      Parameters:
      allocator - The allocator to use, or null for default
      session - The DASession in which to contact Disk Arbitration
      bsdName - The BSD device name
      Returns:
      A reference to a new DADisk
    • createFromIOMedia

      public static DiskArbitration.DADiskRef createFromIOMedia(CoreFoundation.CFAllocatorRef allocator, DiskArbitration.DASessionRef session, IOKit.IOObject media)
      Creates a new disk object from an IOMedia object.
      Parameters:
      allocator - The allocator to use, or null for default
      session - The DASession in which to contact Disk Arbitration
      media - The IOKit.IOObject media object
      Returns:
      A reference to a new DADisk
    • copyDescription

      public CoreFoundation.CFDictionaryRef copyDescription()
      Obtains the Disk Arbitration description of the specified disk.
      Returns:
      The disk's Disk Arbitration description
    • getBSDName

      public String getBSDName()
      Obtains the BSD device name for the specified disk.
      Returns:
      The disk's BSD device name