NANDSimpleSafeCancel

C Specification


#include <revolution/nand.h>

s32 NANDSimpleSafeCancel( NANDFileInfo *info );

Arguments

info Pointer to a NANDFileInfo structure.

Return Values

Returns NAND_RESULT_OK if resources are released normally.

NAND_RESULT_OK
NAND_RESULT_ALLOC_FAILED
NAND_RESULT_BUSY
NAND_RESULT_CORRUPT
NAND_RESULT_INVALID
NAND_RESULT_UNKNOWN
NAND_RESULT_FATAL_ERROR

Description

This function will try to release the resources (temporary files and file descriptors) that are used by the NANDSimpleSafe functions. Call this function if any of the NANDSimpleSafe functions end in an error or if the error codes NAND_RESULT_AUTHENTICATION and NAND_RESULT_ECC_CRIT are issued in response to a read/write operation on a file opened using a NANDSimpleSafe function.

It is not necessary to apply NANDSimpleSafeClose[Async] to the NANDFileInfo structure passed to this function.

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

See Also

NANDSimpleSafeCancelAsync, NANDSimpleSafeOpen, NANDSimpleSafeOpenAsync, NANDSimpleSafeClose, NANDSimpleSafeCloseAsync, Interrupts and Callback Functions

Revision History

2007/09/25 Added information on the sleeping status of threads.
2007/05/09 Initial version.


CONFIDENTIAL