CARDCheckExAsync

C Specification

#include <revolution/card.h>

typedef void (*CARDCallback)( s32 chan, s32 result );
s32 CARDCheckExAsync(s32 chan, s32* xferBytes, CARDCallback callback);

Arguments

chan EXI channel number.
callback Callback function to notify about the result.
xferBytes Bytes written to the Memory Card to repair the file system.

Return Values

One of the following codes:

CARD_RESULT_FATAL_ERROR
CARD_RESULT_NOCARD
CARD_RESULT_BUSY
CARD_RESULT_BROKEN
CARD_RESULT_ENCODING
CARD_RESULT_IOERROR
CARD_RESULT_READY

Description

Asynchronously checks the Memory Card for file system consistency and repairs it if possible.

This function may put the current thread to sleep. For precautions when calling similar functions, refer to Interrupts and Callback Functions.

Note: CARDCheckExAsync can take milliseconds in CPU processing time and must not be called when the interrupt is prohibited.

See Also

CARDGetResultCode

Revision History

2007/09/25 Added information on the sleep status of threads.
2006/03/01 Initial version.


CONFIDENTIAL