Mac Developer Library

Developer

IOStorageDeviceCharacteristics.h Reference

Options
Deployment Target:

On This Page

IOStorageDeviceCharacteristics.h Reference

Included Headers

  • <IOKit/storage/IOStorageProtocolCharacteristics.h>

Constants

See the Overview section above for header-level documentation.

  • Declaration

    #define kIOPropertyBytesPerPhysicalSectorKey "Bytes per Physical Sector" #define kIOPropertyCylinderCountKey "Cylinder Count" #define kIOPropertyDeviceCharacteristicsKey "Device Characteristics" #define kIOPropertyHeadCountKey "Head Count" #define kIOPropertyLogicalBlockSizeKey "Logical Block Size" #define kIOPropertyMediumRotationRateKey "Rotation Rate" #define kIOPropertyMediumTypeKey "Medium Type" #define kIOPropertyMediumTypeRotationalKey "Rotational" #define kIOPropertyMediumTypeSolidStateKey "Solid State" #define kIOPropertyPhysicalBlockSizeKey "Physical Block Size" #define kIOPropertyProductNameKey "Product Name" #define kIOPropertyProductRevisionLevelKey "Product Revision Level" #define kIOPropertyProductSerialNumberKey "Serial Number" #define kIOPropertyRigidDiskGeometryKey "Rigid Disk Geometry" #define kIOPropertySectorCountPerTrackKey "Sector Count per Track" #define kIOPropertySupportedBDFeaturesKey "BD Features" #define kIOPropertySupportedCDFeaturesKey "CD Features" #define kIOPropertySupportedDVDFeaturesKey "DVD Features" #define kIOPropertyTargetDiskModeKey "Target Disk Mode" #define kIOPropertyVendorNameKey "Vendor Name"

    Constants

    • kIOPropertyBytesPerPhysicalSectorKey

      This key is used to define the number of heads for a particular medium.

      Requirement: Mandatory element of the Rigid Disk Geometry dictionary.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>Rigid Disk Geometry</key>
      11. <dict>
      12. <key>Sector Count per Track</key>
      13. <integer>12345</integer>
      14. <key>Head Count</key>
      15. <integer>12</integer>
      16. <key>Cylinder Count</key>
      17. <integer>12345</integer>
      18. <key>Bytes per Physical Sector</key>
      19. <integer>512</integer>
      20. </dict>
      21. </dict>
      22. </dict>
    • kIOPropertyCylinderCountKey

      This key is used to define the number of heads for a particular medium.

      Requirement: Mandatory element of the Rigid Disk Geometry dictionary.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>Rigid Disk Geometry</key>
      11. <dict>
      12. <key>Sector Count per Track</key>
      13. <integer>12345</integer>
      14. <key>Head Count</key>
      15. <integer>12</integer>
      16. <key>Cylinder Count</key>
      17. <integer>12345</integer>
      18. <key>Bytes per Physical Sector</key>
      19. <integer>512</integer>
      20. </dict>
      21. </dict>
      22. </dict>
    • kIOPropertyDeviceCharacteristicsKey

      This key is used to define Device Characteristics for a particular device and it has an associated dictionary which lists the device characteristics. The device characteristics are Command Set specific and are listed in the header files for each command set.

      Requirement: Mandatory

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. </dict>
      11. </dict>
    • kIOPropertyHeadCountKey

      This key is used to define the number of heads for a particular medium.

      Requirement: Mandatory element of the Rigid Disk Geometry dictionary.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>Rigid Disk Geometry</key>
      11. <dict>
      12. <key>Sector Count per Track</key>
      13. <integer>12345</integer>
      14. <key>Head Count</key>
      15. <integer>12</integer>
      16. <key>Cylinder Count</key>
      17. <integer>12345</integer>
      18. <key>Bytes per Physical Sector</key>
      19. <integer>512</integer>
      20. </dict>
      21. </dict>
      22. </dict>
    • kIOPropertyLogicalBlockSizeKey

      This key is used to define the logical block size of a hard disk drive.

      Requirement: Mandatory for hard disk drives with logical block size other than 512 bytes or that does not match its physical block size.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>Physical Block Size</key>
      11. <integer>4096</integer>
      12. <key>Logical Block Size</key>
      13. <integer>512</integer>
      14. </dict>
      15. </dict>
    • kIOPropertyMediumRotationRateKey

      This key is used to indicate the medium rotation rate in RPM of the device.

      Requirement: Optional.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>AAPL</string>
      6. <key>Product Name</key>
      7. <string>FireWire Target</string>
      8. <key>Product Revision Level</key>
      9. <string>0000</string>
      10. <key>Rotation Rate</key>
      11. <integer>7200</integer>
      12. </dict>
      13. </dict>
    • kIOPropertyMediumTypeKey

      This key is used to indicate the medium type of the device.

      Requirement: Optional.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>AAPL</string>
      6. <key>Product Name</key>
      7. <string>FireWire Target</string>
      8. <key>Product Revision Level</key>
      9. <string>0000</string>
      10. <key>Medium Type</key>
      11. <string>Rotational</string>
      12. </dict>
      13. </dict>
    • kIOPropertyMediumTypeRotationalKey

      This key is used to indicate the medium type of the device is rotational.

      Requirement: Optional.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>AAPL</string>
      6. <key>Product Name</key>
      7. <string>FireWire Target</string>
      8. <key>Product Revision Level</key>
      9. <string>0000</string>
      10. <key>Medium Type</key>
      11. <string>Rotational</string>
      12. </dict>
      13. </dict>
    • kIOPropertyMediumTypeSolidStateKey

      This key is used to indicate the medium type of the device is solid state.

      Requirement: Optional.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>AAPL</string>
      6. <key>Product Name</key>
      7. <string>FireWire Target</string>
      8. <key>Product Revision Level</key>
      9. <string>0000</string>
      10. <key>Medium Type</key>
      11. <string>Solid State</string>
      12. </dict>
      13. </dict>
    • kIOPropertyPhysicalBlockSizeKey

      This key is used to define the physical block size of a hard disk drive.

      Requirement: Mandatory for hard disk drives with physical block size other than 512 bytes.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>Physical Block Size</key>
      11. <integer>4096</integer>
      12. <key>Logical Block Size</key>
      13. <integer>512</integer>
      14. </dict>
      15. </dict>
    • kIOPropertyProductNameKey

      This key is used to define the Product Name for a particular device and it has an associated string.

      Requirement: Mandatory

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. </dict>
      11. </dict>
    • kIOPropertyProductRevisionLevelKey

      This key is used to define the Product Revision Level for a particular device and it has an associated string.

      Requirement: Mandatory

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. </dict>
      11. </dict>
    • kIOPropertyProductSerialNumberKey

      This key is used to define the Product Serial Number for a particular device and it has an associated data.

      Requirement: Mandatory

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>Serial Number</key>
      11. <string>123456789</string>
      12. </dict>
      13. </dict>
    • kIOPropertyRigidDiskGeometryKey

      This key is used to define a dictionary containing rigid disk geometry information.

      Requirement: Optional. If a device publishes this dictionary, it must publish all key/value pairs which are deemed Mandatory.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>Rigid Disk Geometry</key>
      11. <dict>
      12. <key>Sector Count per Track</key>
      13. <integer>12345</integer>
      14. <key>Head Count</key>
      15. <integer>12</integer>
      16. <key>Cylinder Count</key>
      17. <integer>12345</integer>
      18. <key>Bytes per Physical Sector</key>
      19. <integer>512</integer>
      20. </dict>
      21. </dict>
      22. </dict>
    • kIOPropertySectorCountPerTrackKey

      This key is used to define the number of sectors per each track for a particular medium.

      Requirement: Mandatory element of the Rigid Disk Geometry dictionary.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>Rigid Disk Geometry</key>
      11. <dict>
      12. <key>Sector Count per Track</key>
      13. <integer>12345</integer>
      14. </dict>
      15. </dict>
      16. </dict>
    • kIOPropertySupportedBDFeaturesKey

      This key is used to define the supported BD Features for a particular optical device and it has an associated bitfield. See <IOKit/scsi/IOSCSIMultimediaCommandsDevice.h> for definitions of the bits and associated bitmasks.

      Requirement: Mandatory for optical devices (Peripheral Device Type 05h).

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>SuperDrive</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>CD Features</key>
      11. <integer>1663</integer>
      12. <key>DVD Features</key>
      13. <integer>103</integer>
      14. <key>BD Features</key>
      15. <integer>21</integer>
      16. </dict>
      17. </dict>
    • kIOPropertySupportedCDFeaturesKey

      This key is used to define the supported CD Features for a particular optical device and it has an associated bitfield. See <IOKit/scsi/IOSCSIMultimediaCommandsDevice.h> for definitions of the bits and associated bitmasks.

      Requirement: Mandatory for optical devices (Peripheral Device Type 05h).

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>SuperDrive</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>CD Features</key>
      11. <integer>1663</integer>
      12. <key>DVD Features</key>
      13. <integer>103</integer>
      14. </dict>
      15. </dict>
    • kIOPropertySupportedDVDFeaturesKey

      This key is used to define the supported DVD Features for a particular optical device and it has an associated bitfield. See <IOKit/scsi/IOSCSIMultimediaCommandsDevice.h> for definitions of the bits and associated bitmasks.

      Requirement: Mandatory for optical devices (Peripheral Device Type 05h).

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>SuperDrive</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. <key>CD Features</key>
      11. <integer>1663</integer>
      12. <key>DVD Features</key>
      13. <integer>103</integer>
      14. </dict>
      15. </dict>
    • kIOPropertyTargetDiskModeKey

      This key is used to indicate the device is another computer in Target Disk Mode.

      Requirement: Optional.

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>AAPL</string>
      6. <key>Product Name</key>
      7. <string>FireWire Target</string>
      8. <key>Product Revision Level</key>
      9. <string>0000</string>
      10. <key>Target Disk Mode</key>
      11. <true/>
      12. </dict>
      13. </dict>
    • kIOPropertyVendorNameKey

      This key is used to define the Vendor Name for a particular device and it has an associated string.

      Requirement: Mandatory

      Example:

      1. <dict>
      2. <key>Device Characteristics</key>
      3. <dict>
      4. <key>Vendor Name</key>
      5. <string>Apple</string>
      6. <key>Product Name</key>
      7. <string>iPod</string>
      8. <key>Product Revision Level</key>
      9. <string>1.0</string>
      10. </dict>
      11. </dict>