ADC Home > Reference Library > Reference > Darwin > Disk Arbitration Framework Reference
|
DADisk.h |
Includes: |
DADiskCopyDescription |
Obtains the Disk Arbitration description of the specified disk.
extern CFDictionaryRef DADiskCopyDescription( DADiskRef disk );
disk
The disk's Disk Arbitration description.
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 CFRelease().
DADiskCopyIOMedia |
Obtains the I/O Kit media object for the specified disk.
extern io_service_t DADiskCopyIOMedia( DADiskRef disk );
disk
The disk's I/O Kit media 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 IOObjectRelease().
DADiskCopyWholeDisk |
Obtain the associated whole disk object for the specified disk.
extern DADiskRef DADiskCopyWholeDisk( DADiskRef disk );
disk
The disk's associated whole 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 CFRelease().
DADiskCreateFromBSDName |
Creates a new disk object.
extern DADiskRef DADiskCreateFromBSDName( CFAllocatorRef allocator, DASessionRef session, const char *name );
allocator
session
name
A reference to a new DADisk.
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().
DADiskCreateFromIOMedia |
Creates a new disk object.
extern DADiskRef DADiskCreateFromIOMedia( CFAllocatorRef allocator, DASessionRef session, io_service_t media );
allocator
session
media
A reference to a new DADisk.
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().
DADiskGetBSDName |
Obtains the BSD device name for the specified disk.
extern const char * DADiskGetBSDName( DADiskRef disk );
disk
The disk's BSD device name.
The BSD device name can be used with opendev() to open the BSD device.
DADiskGetTypeID |
Returns the type identifier of all DADisk instances.
extern CFTypeID DADiskGetTypeID( void );
DADiskRef |
typedef struct __DADisk * DADiskRef;
Type of a reference to DADisk instances.
|