FSGetCurrentCmdBlock

Syntax

#include <cafe/fs.h>

FSCmdBlock* FSGetCurrentCmdBlock(FSClient *client);

Parameters

client Pointer of client buffer.

Return Values

Pointer to command block. Returns NULL if no command is in flight or specified client is invalid.

Description

Get current command block that is being processed.

If you call this function in state change callback, this will return currently blocking command which was in flight when state change happened.

If you call this function in command completion callback, this will return the next command block in the queue which would be already in flight.

Do Not Call From

None.

See Also

Command block
FSInitCmdBlock

Revision History

2013/05/08 Automated cleanup pass.
2012/09/03 Initial version.


CONFIDENTIAL