Class DiskArbitration.DADiskRef
java.lang.Object
oshi.ffm.mac.CoreFoundation.CFTypeRef
oshi.ffm.mac.DiskArbitration.DADiskRef
- Enclosing interface:
DiskArbitration
Type of a reference to DADisk instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains the Disk Arbitration description of the specified disk.static DiskArbitration.DADiskRefcreateFromBSDName(CoreFoundation.CFAllocatorRef allocator, DiskArbitration.DASessionRef session, String bsdName) Creates a new disk object from a BSD device name.static DiskArbitration.DADiskRefcreateFromIOMedia(CoreFoundation.CFAllocatorRef allocator, DiskArbitration.DASessionRef session, IOKit.IOObject media) Creates a new disk object from an IOMedia object.Obtains the BSD device name for the specified disk.
-
Constructor Details
-
DADiskRef
-
-
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 defaultsession- The DASession in which to contact Disk ArbitrationbsdName- 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 defaultsession- The DASession in which to contact Disk Arbitrationmedia- The IOKit.IOObject media object- Returns:
- A reference to a new DADisk
-
copyDescription
Obtains the Disk Arbitration description of the specified disk.- Returns:
- The disk's Disk Arbitration description
-
getBSDName
Obtains the BSD device name for the specified disk.- Returns:
- The disk's BSD device name
-