IOBlockStorageDevice.h Reference

Declared in
IOBlockStorageDevice.h

Overview

This header contains the IOBlockStorageDevice class definition.

Included Headers

  • <IOKit/IOTypes.h>

  • <IOKit/storage/IOStorageDeviceCharacteristics.h>

  • <IOKit/IOMemoryDescriptor.h>

  • <IOKit/IOMessage.h>

  • <IOKit/IOService.h>

  • <IOKit/storage/IOMedia.h>

Data Types

See the Overview section above for header-level documentation.

IOBlockStorageDeviceExtent

Extent for unmap storage requests.

struct IOBlockStorageDeviceExtent {
   UInt64 blockStart;
   UInt64 blockCount;
};
Fields
blockStart

The starting block number of the operation.

blockCount

The integral number of blocks to be deleted.

Availability
  • Available in OS X v10.7 and later.
Declared In
IOBlockStorageDevice.h

Constants

See the Overview section above for header-level documentation.

Miscellaneous Defines

   
#define kIOBlockStorageDeviceClass "IOBlockStorageDevice"
#define kIOBlockStorageDeviceTypeGeneric "Generic"
#define kIOBlockStorageDeviceTypeKey "device-type"
#define kIOBlockStorageDeviceWriteCacheStateKey "WriteCacheState"
#define kIOMessageMediaParametersHaveChanged iokit_family_msg(sub_iokit_block_storage,
   2)
#define kIOMessageMediaStateHasChanged iokit_family_msg(sub_iokit_block_storage,
   1)
Constants
kIOBlockStorageDeviceClass

The name of the IOBlockStorageDevice class.

Available in OS X v10.2 and later.

Declared in IOBlockStorageDevice.h.

kIOBlockStorageDeviceTypeGeneric

A character string used for nub matching.

Available in OS X v10.0 and later.

Declared in IOBlockStorageDevice.h.

kIOBlockStorageDeviceTypeKey

The name of the property tested for nub type matching by the generic block storage driver.

Available in OS X v10.0 and later.

Declared in IOBlockStorageDevice.h.

kIOBlockStorageDeviceWriteCacheStateKey

The name of the property used to get or set the write cache state of the block storage device.

Available in OS X v10.3 and later.

Declared in IOBlockStorageDevice.h.

kIOMessageMediaParametersHaveChanged

The message ID which indicates that the media parameters, such as the highest valid block for the device, have changed.

The message is passed to all clients of the IOBlockStorageDevice via the message() method.

Available in OS X v10.6 and later.

Declared in IOBlockStorageDevice.h.

kIOMessageMediaStateHasChanged

The message ID which indicates that the media state has changed.

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.

Available in OS X v10.0 and later.

Declared in IOBlockStorageDevice.h.