<< Previous | Next >>

OSMemPut

INT8U OSMemPut(OS_MEM *pmem, void *pblk);

Description

Returns a memory block to a partition.

Parameters

pmem
Pointer to the partition's memory control block.

pblk
Pointer to the memory block being released.

Return value

OS_NO_ERR
The memory block was inserted into the partition.

OS_MEM_FULL
If returning a memory block to an already FULL memory partition. (More blocks were freed than allocated!)

Library

OS_MEM.C

See also

OSMemCreate, OSMemGet, OSMemQuery


020-0059 Rev. D << Previous | Next >> µC/OS-II