02.01.2015 Views

CooCox CoOS User's Guide

CooCox CoOS User's Guide

CooCox CoOS User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.5.6 CoFreeMemoryBuffer()<br />

Function Prototype:<br />

StatusType CoFreeMemoryBuffer<br />

(<br />

OS_MMID mmID,<br />

void*<br />

buf<br />

);<br />

Description:<br />

Release the memory block which has the initial address buf to a certain<br />

memory partition.<br />

Parameters:<br />

[IN] mmID<br />

The ID of the memory partition<br />

[IN] buf<br />

The initial address of the memory block which needs to be released<br />

Returns:<br />

E_INVALID_ID,<br />

The ID of the memory partition is invalid.<br />

E_INVALID_PARAMETER, Invalid parameter buf.<br />

E_OK,<br />

Release the memory block successfully.<br />

74

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!