Mac Developer Library

Developer

IOBlockStorageDevice.h Reference

Options
Deployment Target:

On This Page

IOBlockStorageDevice.h Reference

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.

  • Extent for unmap storage requests.

    Declaration

    struct IOBlockStorageDeviceExtent { UInt64 blockStart; UInt64 blockCount; };

    Fields

    blockStart

    The starting block number of the operation.

    blockCount

    The integral number of blocks to be deleted.

Constants

See the Overview section above for header-level documentation.

  • Declaration

    #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.

    • 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 is passed to all clients of the IOBlockStorageDevice via the message() method.

    • kIOMessageMediaStateHasChanged

      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.