#include <IOKit/storage/IOBlockStorageDevice.h>

IOKit/storage/IOBlockStorageDevice.h Kernel.framework

@header IOBlockStorageDevice @abstract This header contains the IOBlockStorageDevice class definition.
7 macros · 2 structs

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

size 16, align 8
UInt64blockStart
UInt64blockCount

structIOBlockStorageProvisionDeviceExtent

size 24, align 8
UInt64blockStart
UInt64blockCount
UInt8provisionType
UInt8[7]reserved