Mac Dev Center Mac OS X Reference Library Drivers, Kernel, & Hardware: User-Space Device Access Disk Arbitration Framework Reference
|
DADisk.h |
Includes: |
Use the links in the table of contents to the left to access the documentation.
Obtains the Disk Arbitration description of the specified disk.
Obtains the I/O Kit media object for the specified disk.
Obtain the associated whole disk object for the specified disk.
Creates a new disk object.
Creates a new disk object.
Obtains the BSD device name for the specified disk.
Returns the type identifier of all DADisk instances.
DADiskCopyDescription |
Obtains the Disk Arbitration description of the specified disk.
extern CFDictionaryRef DADiskCopyDescription( DADiskRef disk );
disk
The DADisk for which to obtain the Disk Arbitration description.
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 DADisk for which to obtain the I/O Kit media object.
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 object.
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
The allocator object to be used to allocate memory.
session
The DASession in which to contact Disk Arbitration.
name
The BSD device 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
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.
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 DADisk for which to obtain the BSD device name.
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 );
Key whose value tells the name of the bus to which the underlying hardware device is attached.
Key whose value tells the I/O Registry path of the bus to which the underlying hardware device is attached.
Key whose value tells the GUID of the partition associated with a volume.
Key whose value tells whether the volume is an internal disk.
Key whose value tells the model information for the underlying media.
Key whose value tells the I/O Registry path of the underlying hardware device.
Key whose value tells the bus protocol used by the underlying device.
Key whose value tells the revision of the underlying hardware device.
Key whose value tells the device ID of the underlying hardware device.
Key whose value tells the vendor ID of the underlying hardware device.
Key whose value tells the block size of the underlying media.
Key whose value tells the major number of the underlying block device.
Key whose value tells the minor number of the underlying block device.
Key whose value tells the name of the underlying block device.
Key whose value tells the unit number of the underlying block device.
Key whose value tells the media content value from the underlying IOMedia Object (usually the volume format).
Key whose value tells whether the media can be ejected.
Key whose value contains a path to the volume's icon.
Key whose value tells the I/O Kit class for the underlying media (usually IOMedia).
Key whose value tells whether the underlying media object is a leaf node.
Key whose value tells the name of the underlying media. For leaf partitions, usually the volume name.
Key whose value tells the path to the IOMedia object in the I/O Registry.
Key whose value tells whether the underlying media is removable.
Key whose value tells the size of the underlying media.
Key whose value tells the type of the underlying media.
Key whose value tells the unique identifier for the underlying media (if available).
Key whose value tells whether this media object is a "whole disk" media object.
Key whose value tells whether the underlying media is writable.
Key whose value tells the type of volume (volume format).
Key whose value tells if a volume is mountable.
Key whose value tells the volume name.
Key whose value tells whether the volume is a network volume.
Key whose value tells the mount point path.
Key whose value tells the volume UUID.
kDADiskDescriptionBusNameKey |
Key whose value tells the name of the bus to which the underlying hardware device is attached.
extern const CFStringRef kDADiskDescriptionBusNameKey; /* ( CFString ) */
kDADiskDescriptionBusPathKey |
Key whose value tells the I/O Registry path of the bus to which the underlying hardware device is attached.
extern const CFStringRef kDADiskDescriptionBusPathKey; /* ( CFString ) */
kDADiskDescriptionDeviceGUIDKey |
Key whose value tells the GUID of the partition associated with a volume.
extern const CFStringRef kDADiskDescriptionDeviceGUIDKey; /* ( CFData ) */
kDADiskDescriptionDeviceInternalKey |
Key whose value tells whether the volume is an internal disk.
extern const CFStringRef kDADiskDescriptionDeviceInternalKey; /* ( CFBoolean ) */
kDADiskDescriptionDeviceModelKey |
Key whose value tells the model information for the underlying media.
extern const CFStringRef kDADiskDescriptionDeviceModelKey; /* ( CFString ) */
kDADiskDescriptionDevicePathKey |
Key whose value tells the I/O Registry path of the underlying hardware device.
extern const CFStringRef kDADiskDescriptionDevicePathKey; /* ( CFString ) */
kDADiskDescriptionDeviceProtocolKey |
Key whose value tells the bus protocol used by the underlying device.
extern const CFStringRef kDADiskDescriptionDeviceProtocolKey; /* ( CFString ) */
kDADiskDescriptionDeviceRevisionKey |
Key whose value tells the revision of the underlying hardware device.
extern const CFStringRef kDADiskDescriptionDeviceRevisionKey; /* ( CFString ) */
kDADiskDescriptionDeviceUnitKey |
Key whose value tells the device ID of the underlying hardware device.
extern const CFStringRef kDADiskDescriptionDeviceUnitKey; /* ( CFNumber ) */
kDADiskDescriptionDeviceVendorKey |
Key whose value tells the vendor ID of the underlying hardware device.
extern const CFStringRef kDADiskDescriptionDeviceVendorKey; /* ( CFString ) */
kDADiskDescriptionMediaBlockSizeKey |
Key whose value tells the block size of the underlying media.
extern const CFStringRef kDADiskDescriptionMediaBlockSizeKey; /* ( CFNumber ) */
kDADiskDescriptionMediaBSDMajorKey |
Key whose value tells the major number of the underlying block device.
extern const CFStringRef kDADiskDescriptionMediaBSDMajorKey; /* ( CFNumber ) */
kDADiskDescriptionMediaBSDMinorKey |
Key whose value tells the minor number of the underlying block device.
extern const CFStringRef kDADiskDescriptionMediaBSDMinorKey; /* ( CFNumber ) */
kDADiskDescriptionMediaBSDNameKey |
Key whose value tells the name of the underlying block device.
extern const CFStringRef kDADiskDescriptionMediaBSDNameKey; /* ( CFString ) */
kDADiskDescriptionMediaBSDUnitKey |
Key whose value tells the unit number of the underlying block device.
extern const CFStringRef kDADiskDescriptionMediaBSDUnitKey; /* ( CFNumber ) */
kDADiskDescriptionMediaContentKey |
Key whose value tells the media content value from the underlying IOMedia Object (usually the volume format).
extern const CFStringRef kDADiskDescriptionMediaContentKey; /* ( CFString ) */
kDADiskDescriptionMediaEjectableKey |
Key whose value tells whether the media can be ejected.
extern const CFStringRef kDADiskDescriptionMediaEjectableKey; /* ( CFBoolean ) */
kDADiskDescriptionMediaIconKey |
Key whose value contains a path to the volume's icon.
extern const CFStringRef kDADiskDescriptionMediaIconKey; /* ( CFDictionary ) */
kDADiskDescriptionMediaKindKey |
Key whose value tells the I/O Kit class for the underlying media (usually IOMedia).
extern const CFStringRef kDADiskDescriptionMediaKindKey; /* ( CFString ) */
kDADiskDescriptionMediaLeafKey |
Key whose value tells whether the underlying media object is a leaf node.
extern const CFStringRef kDADiskDescriptionMediaLeafKey; /* ( CFBoolean ) */
kDADiskDescriptionMediaNameKey |
Key whose value tells the name of the underlying media. For leaf partitions, usually the volume name.
extern const CFStringRef kDADiskDescriptionMediaNameKey; /* ( CFString ) */
kDADiskDescriptionMediaPathKey |
Key whose value tells the path to the IOMedia object in the I/O Registry.
extern const CFStringRef kDADiskDescriptionMediaPathKey; /* ( CFString ) */
kDADiskDescriptionMediaRemovableKey |
Key whose value tells whether the underlying media is removable.
extern const CFStringRef kDADiskDescriptionMediaRemovableKey; /* ( CFBoolean ) */
kDADiskDescriptionMediaSizeKey |
Key whose value tells the size of the underlying media.
extern const CFStringRef kDADiskDescriptionMediaSizeKey; /* ( CFNumber ) */
kDADiskDescriptionMediaTypeKey |
Key whose value tells the type of the underlying media.
extern const CFStringRef kDADiskDescriptionMediaTypeKey; /* ( CFString ) */
kDADiskDescriptionMediaUUIDKey |
Key whose value tells the unique identifier for the underlying media (if available).
extern const CFStringRef kDADiskDescriptionMediaUUIDKey; /* ( CFUUID ) */
kDADiskDescriptionMediaWholeKey |
Key whose value tells whether this media object is a "whole disk" media object.
extern const CFStringRef kDADiskDescriptionMediaWholeKey; /* ( CFBoolean ) */
kDADiskDescriptionMediaWritableKey |
Key whose value tells whether the underlying media is writable.
extern const CFStringRef kDADiskDescriptionMediaWritableKey; /* ( CFBoolean ) */
kDADiskDescriptionVolumeKindKey |
Key whose value tells the type of volume (volume format).
extern const CFStringRef kDADiskDescriptionVolumeKindKey; /* ( CFString ) */
kDADiskDescriptionVolumeMountableKey |
Key whose value tells if a volume is mountable.
extern const CFStringRef kDADiskDescriptionVolumeMountableKey; /* ( CFBoolean ) */
kDADiskDescriptionVolumeNameKey |
Key whose value tells the volume name.
extern const CFStringRef kDADiskDescriptionVolumeNameKey; /* ( CFString ) */
kDADiskDescriptionVolumeNetworkKey |
Key whose value tells whether the volume is a network volume.
extern const CFStringRef kDADiskDescriptionVolumeNetworkKey; /* ( CFBoolean ) */
kDADiskDescriptionVolumePathKey |
Key whose value tells the mount point path.
extern const CFStringRef kDADiskDescriptionVolumePathKey; /* ( CFURL ) */
kDADiskDescriptionVolumeUUIDKey |
Key whose value tells the volume UUID.
extern const CFStringRef kDADiskDescriptionVolumeUUIDKey; /* ( CFUUID ) */
DADiskRef |
typedef struct __DADisk * DADiskRef;
Type of a reference to DADisk instances.
Last Updated: 2009-10-26