ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference

 


IOBlockStorageDevice.h

Include Path:

<IOKit/storage/IOBlockStorageDevice.h>

Path:

/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/storage/IOBlockStorageDevice.h

Includes:

Overview

This header contains the definition of the abstract IOBlockStorageDevice class. This class defines the interface to the underlying mechanisms of the transport driver layer that transport data to and from the represented storage space.

For more information on the IOBlockStorageDevice class and its place in the mass storage driver stack, see Writing Drivers for Mass Storage Devices.



Classes

IOBlockStorageDevice

A generic block storage device abstraction.



#defines


kIOBlockStorageDeviceClass


The name of the IOBlockStorageDevice class.

#define kIOBlockStorageDeviceClass "IOBlockStorageDevice" 


kIOBlockStorageDeviceTypeGeneric


A character string used for nub matching.

#define kIOBlockStorageDeviceTypeGeneric "Generic" 


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( err_sub(4), 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( err_sub(4), 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: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2008-12-19