#include <IOKit/storage/IOBlockStorageDevice.h>
IOKit/storage/IOBlockStorageDevice.h
@header IOBlockStorageDevice
@abstract
This header contains the IOBlockStorageDevice class definition.
macrokIOBlockStorageDeviceClass
#define kIOBlockStorageDeviceClass "IOBlockStorageDevice"
macrokIOBlockStorageDeviceWriteCacheStateKey
@defined kIOBlockStorageDeviceWriteCacheStateKey
@abstract The name of the property used to get or set the write cache state of the
block storage device.
#define kIOBlockStorageDeviceWriteCacheStateKey "WriteCacheState"
macrokIOMessageMediaParametersHaveChanged
@defined kIOMessageMediaParametersHaveChanged
@abstract The message ID which indicates that the media parameters, such as the highest valid block
for the device, have changed.
@discussion The message is passed to all clients of the IOBlockStorageDevice via the message() method.
#define kIOMessageMediaParametersHaveChanged iokit_family_msg(sub_iokit_block_storage, 2)
macrokIOMessageMediaStateHasChanged
@defined kIOMessageMediaStateHasChanged
@abstract The message ID which indicates that the media state has changed.
@discussion The message is passed to all clients of the IOBlockStorageDevice via the message() method.
The argument that is passed along with this message is an IOMediaState value.
#define kIOMessageMediaStateHasChanged iokit_family_msg(sub_iokit_block_storage, 1)
macrokIOBlockStorageDeviceTypeKey
Property used for matching, so the generic driver gets the nub it wants.
@defined kIOBlockStorageDeviceTypeKey
@abstract The name of the property tested for nub type matching by the generic block
storage driver.
#define kIOBlockStorageDeviceTypeKey "device-type"
macrokIOBlockStorageDeviceTypeGeneric
@defined kIOBlockStorageDeviceTypeGeneric
@abstract A character string used for nub matching.
#define kIOBlockStorageDeviceTypeGeneric "Generic"
macrokIOBlockStorageDeviceTDMLocked
@defined kIOBlockStorageDeviceTDMLocked
@abstract A boolean property to tell if device is connected through TDM, and not
authenticated yet
#define kIOBlockStorageDeviceTDMLocked "AppleTDMLocked"
structIOBlockStorageDeviceExtent
| UInt64 | blockStart | |
| UInt64 | blockCount |
structIOBlockStorageProvisionDeviceExtent
| UInt64 | blockStart | |
| UInt64 | blockCount | |
| UInt8 | provisionType | |
| UInt8[7] | reserved |