Instance Property

Locked64

Get the 64-bit value returned on the last compare swap operation.

Declaration

IOReturn (*Locked64)(IOFireWireLibCompareSwapCommandRef self, UInt64 *oldValue);

Parameters

self

The command object interface of interest

oldValue

A pointer to contain the value returned by the target of this command on the last compare swap operation

Return Value

Returns kIOReturnBadArgument if the last compare swap performed was 32-bit.

Discussion

Available in v2 and newer.

See Also

Miscellaneous

Cancel

Cancel command execution

DidLock

Was the last lock operation successful?

GetStatus

Return command completion status.

GetTargetAddress

Get command target address.

GetTransferredBytes

Return number of bytes transferred by this command object when it last completed execution.

IsExecuting

Is this command object currently executing?

Locked

Get the 32-bit value returned on the last compare swap operation.

SetCallback

Set the completion handler to be called once the command completes asynchronous execution .

SetFlags

Set flags governing this command's execution.

SetGeneration

Set FireWire bus generation for which the command object shall be valid. If the failOnReset attribute has been set, the command will only be considered for execution during the bus generation specified by this function.

SetRefCon

Set the user refCon value. This is the user defined value that will be passed in the refCon argument to the completion function.

SetTarget

Set command target address

SetValues

Set values for 32-bit compare swap operation. Calling this function will make the command object perform 32-bit compare swap transactions on the bus. To perform 64-bit compare swap operations, use the SetValues64() call, below.

SetValues64

Set values for 64-bit compare swap operation. Calling this function will make the command object perform 64-bit compare swap transactions on the bus. To perform 32-bit compare swap operations, use the SetValues() call, above.

SubmitWithRefconAndCallback

Set the command refCon value and callback handler, and submit the command to FireWire for execution.