CNTReleaseHandle

Syntax


#include <revolution/cnt.h>

s32 CNTReleaseHandle(CNTHandle* CntHandle);

Arguments

CntHandle Pointer to the CNTHandle structure to release.

Return Values

For a NAND application, returns one of the following codes:

CNT_RESULT_OK
CNT_RESULT_ACCESS
CNT_RESULT_CORRUPT
CNT_RESULT_INVALID
CNT_RESULT_OUT_OF_MEMORY
CNT_RESULT_UNKNOWN
CNT_RESULT_FATAL

For a disc application, always returns CNT_RESULT_OK.

Description

Releases the CNTHandle structure. FST memory is also released from the allocator.
Note:This function sometimes puts the current thread to sleep, so it cannot be called from callback functions. Refer to Interrupts and Callback Functions.

See Also

CNTInitHandle
Interrupts and Callback Functions

Revision History

2007/09/12 Added information about the sleep status of threads.
2006/12/04 Added result code descriptions.
2006/08/15 Initial version.


CONFIDENTIAL