Mac Developer Library

Developer

IOBDMedia Class Reference

Options
Deployment Target:

On This Page
Language:

IOBDMedia

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable

Objective-C

@import Kernel;

Availability


Available in OS X v10.6 and later.

The IOBDMedia class is a random-access disk device abstraction for BDs.

The IOBDMedia class is a random-access disk device abstraction for BDs.

  • Declaration

    C++

    virtual IOReturn getSpeed( UInt16 *kilobytesPerSecond);

    Parameters

    kilobytesPerSecond

    Returns the current speed used for data transfers, in kB/s.

    kBDSpeedMin specifies the minimum speed for all BD media (1X). kBDSpeedMax specifies the maximum speed supported in hardware.

    Return Value

    Returns the status of the operation.

    Discussion

    Get the current speed used for data transfers.

  • Declaration

    C++

    virtual IOReturn readDiscInfo( IOMemoryDescriptor *buffer, UInt8type, UInt16 *actualByteCount );

    Parameters

    buffer

    Buffer for the data transfer. The size of the buffer implies the size of the data transfer.

    type

    Reserved for future use. Set to zero.

    actualByteCount

    Returns the actual number of bytes transferred in the data transfer.

    Return Value

    Returns the status of the data transfer.

    Discussion

    Issue an MMC READ DISC INFORMATION command.

  • Declaration

    C++

    virtual IOReturn readStructure( IOMemoryDescriptor *buffer, UInt8format, UInt32address, UInt8layer, UInt8grantID );

    Parameters

    buffer

    Buffer for the data transfer. The size of the buffer implies the size of the data transfer.

    format

    As documented by MMC.

    address

    As documented by MMC.

    layer

    As documented by MMC.

    grantID

    As documented by MMC.

    Return Value

    Returns the status of the data transfer.

    Discussion

    Issue an MMC READ DISC STRUCTURE command.

  • Declaration

    C++

    virtual IOReturn readTrackInfo( IOMemoryDescriptor *buffer, UInt32address, UInt8addressType, UInt8open, UInt16 *actualByteCount );

    Parameters

    buffer

    Buffer for the data transfer. The size of the buffer implies the size of the data transfer.

    address

    As documented by MMC.

    addressType

    As documented by MMC.

    open

    Reserved for future use. Set to zero.

    actualByteCount

    Returns the actual number of bytes transferred in the data transfer.

    Return Value

    Returns the status of the data transfer.

    Discussion

    Issue an MMC READ TRACK INFORMATION command.

  • Declaration

    C++

    virtual IOReturn reportKey( IOMemoryDescriptor *buffer, UInt8keyClass, UInt32address, UInt8grantID, UInt8format );

    Parameters

    buffer

    Buffer for the data transfer. The size of the buffer implies the size of the data transfer.

    keyClass

    As documented by MMC.

    address

    As documented by MMC.

    grantID

    As documented by MMC.

    format

    As documented by MMC.

    Return Value

    Returns the status of the data transfer.

    Discussion

    Issue an MMC REPORT KEY command.

  • Declaration

    C++

    virtual IOReturn sendKey( IOMemoryDescriptor *buffer, UInt8keyClass, UInt8grantID, UInt8format );

    Parameters

    buffer

    Buffer for the data transfer. The size of the buffer implies the size of the data transfer.

    keyClass

    As documented by MMC.

    grantID

    As documented by MMC.

    format

    As documented by MMC.

    Return Value

    Returns the status of the data transfer.

    Discussion

    Issue an MMC SEND KEY command.

  • Declaration

    C++

    virtual IOReturn setSpeed( UInt16kilobytesPerSecond);

    Parameters

    kilobytesPerSecond

    Speed to be used for data transfers, in kB/s.

    kBDSpeedMin specifies the minimum speed for all BD media (1X). kBDSpeedMax specifies the maximum speed supported in hardware.

    Return Value

    Returns the status of the operation.

    Discussion

    Set the speed to be used for data transfers.

  • Declaration

    C++

    virtual IOReturn splitTrack( UInt32address);

    Parameters

    address

    As documented by MMC.

    Return Value

    Returns the status of the operation.

    Discussion

    Issue an MMC RESERVE TRACK command with the ARSV bit.