Mac OS X Reference Library Apple Developer
Search

IOBlockStorageDevice.h

Overview

This header contains the IOBlockStorageDevice class definition.



Classes

IOBlockStorageDevice

A generic block storage device abstraction.



Macro Definitions

kIOBlockStorageDeviceClass

The name of the IOBlockStorageDevice class.

kIOBlockStorageDeviceTypeGeneric

A character string used for nub matching.

kIOBlockStorageDeviceTypeKey

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

kIOBlockStorageDeviceWriteCacheStateKey

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

kIOMessageMediaParametersHaveChanged

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

kIOMessageMediaStateHasChanged

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


kIOBlockStorageDeviceClass


The name of the IOBlockStorageDevice class.


#define kIOBlockStorageDeviceClass "IOBlockStorageDevice" 

kIOBlockStorageDeviceTypeGeneric


A character string used for nub matching.


kIOBlockStorageDeviceTypeKey


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


#define kIOBlockStorageDeviceTypeKey "device-type" 

kIOBlockStorageDeviceWriteCacheStateKey


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


#define kIOBlockStorageDeviceWriteCacheStateKey "WriteCacheState" 

kIOMessageMediaParametersHaveChanged


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


#define kIOMessageMediaParametersHaveChanged iokit_family_msg(sub_iokit_block_storage, 2) 
Discussion

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


kIOMessageMediaStateHasChanged


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


#define kIOMessageMediaStateHasChanged iokit_family_msg(sub_iokit_block_storage, 1) 
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.

Devices that aren't capable of detecting media state changes indicate this in the reportPollRequirements() method.

 

Did this document help you? Yes It's good, but... Not helpful...

Last Updated: 2010-07-29