ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference
|
IOMedia.h |
Include Path: | <IOKit/storage/IOMedia.h> |
Path: | /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/storage/IOMedia.h |
Includes: |
This header contains the IOMedia class definition. The IOMedia class is a random-access disk device abstraction that provides a consistent interface for real and virtual disk devices, subdivisions of disks (such as partitions), and supersets of disks (such as RAID volumes).
For more information on the IOMedia class and its subclasses, see Writing Drivers for Mass Storage Devices.
A random-access disk device abstraction.
IOMediaAttributeMask |
enum { kIOMediaAttributeEjectableMask = 0x00000001, kIOMediaAttributeRemovableMask = 0x00000002, kIOMediaAttributeReservedMask = 0xFFFFFFFC };
kIOMediaAttributeEjectableMask
Indicates whether the media is ejectable from the drive mechanism under software control. Implies kIOMediaAttributeRemovableMask.
kIOMediaAttributeRemovableMask
Indicates whether the media is removable from the drive mechanism.
The IOMediaAttributeMask bit mask describes various attributes of the media object, such as its ejectability and its removability.
kIOMediaClass |
The name of the IOMedia class.
#define kIOMediaClass "IOMedia"
kIOMediaContentHintKey |
A property of IOMedia objects.
#define kIOMediaContentHintKey "Content Hint"
The kIOMediaContentHintKey property has an OSString value and contains a hint of the media's contents. The hint is set at the time of the object's creation, should the creator have a clue as to what it may contain. The hint string does not change for the lifetime of the object and is formed in the likeness of Apple's "Apple_HFS" strings or in the likeness of a UUID.
kIOMediaContentKey |
A property of IOMedia objects.
#define kIOMediaContentKey "Content"
The kIOMediaContentKey property has an OSString value and contains a description of the media's contents. The description is the same as the hint at the time of the object's creation, but it is possible that the description has been overridden by a client (which has probed the media and identified the content correctly) of the media object. It is more accurate than the hint for this reason. The string is formed in the likeness of Apple's "Apple_HFS" strings or in the likeness of a UUID.
kIOMediaContentMaskKey |
A property of IOMedia clients.
#define kIOMediaContentMaskKey "Content Mask"
The kIOMediaContentMaskKey property has an OSString value and must exist in all IOMedia clients that drive new content (that is, produce new media objects). When the client matches against the provider media, the value of the client's kIOMediaContentMaskKey property is used to replace the provider's kIOMediaContentKey property.
kIOMediaEjectableKey |
A property of IOMedia objects.
#define kIOMediaEjectableKey "Ejectable"
The kIOMediaEjectableKey property has an OSBoolean value and describes whether the media is ejectable from the drive mechanism under software control. Implies IOMediaRemovable is also true.
kIOMediaIconKey |
A property of any object in the media stack.
#define kIOMediaIconKey "IOMediaIcon"
kIOMediaIconKey is a property of any object in the media stack that wishes to override the default icon shown for the media objects in the stack. It is usually defined in a provider object below the media object. It has an OSDictionary value, with properties identical to the kIOIconKey definition, that is, kCFBundleIdentifierKey and kIOBundleResourceFileKey.
kIOMediaLeafKey |
A property of IOMedia objects.
#define kIOMediaLeafKey "Leaf"
The kIOMediaLeafKey property has an OSBoolean value and describes whether the media is a leaf, that is, it is the deepest media object in this branch of the I/O Registry.
kIOMediaOpenKey |
A property of IOMedia objects.
#define kIOMediaOpenKey "Open"
The kIOMediaOpenKey property has an OSBoolean value and describes whether a client presently has an open on this media.
kIOMediaPreferredBlockSizeKey |
A property of IOMedia objects.
#define kIOMediaPreferredBlockSizeKey "Preferred Block Size"
The kIOMediaPreferredBlockSizeKey property has an OSNumber value and describes the media's natural block size in bytes. This information is useful to clients that want to optimize access to the media.
kIOMediaRemovableKey |
A property of IOMedia objects.
#define kIOMediaRemovableKey "Removable"
The kIOMediaRemovableKey property has an OSBoolean value and describes whether the media is removable from the drive mechanism.
kIOMediaSizeKey |
A property of IOMedia objects.
#define kIOMediaSizeKey "Size"
The kIOMediaSizeKey property has an OSNumber value and describes the total length of the media in bytes.
kIOMediaUUIDKey |
A property of IOMedia objects.
#define kIOMediaUUIDKey "UUID"
The kIOMediaUUIDKey property has an OSString value and contains a persistent Universal Unique Identifier for the media if such an identifier is available.
kIOMediaWholeKey |
A property of IOMedia objects.
#define kIOMediaWholeKey "Whole"
The kIOMediaWholeKey property has an OSBoolean value and describes whether the media is whole, that is, it represents the whole disk (the physical disk, or a virtual replica thereof).
kIOMediaWritableKey |
A property of IOMedia objects.
#define kIOMediaWritableKey "Writable"
The kIOMediaWritableKey property has an OSBoolean value and describes whether the media is writable.
|
Last Updated: 2008-12-19