INtime SDK Help
heap_set_blk_size
INtime SDK v7.1 > About INtime > Other system libraries > Heaps and memory pools > C/C++ Runtime heap > heap_set_blk_size

Sets the basic heap allocation block's size.

int heap_set_blk_size(size_t page_cnt);

Parameters

page_cnt
The number of pages per allocation block.

Remarks

Sets the size of the basic allocation block in units of page size. See heap_get_page_size. Heap_set_blk_size may be called at any time.

Return Values

0 (zero)
Success.
Less than 0 (zero)
Failure. The function sets errno to one of these values:
EEXIST The heap is deleted.
EINVAL The heap is not a valid MPOOL.

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/heap.h heap.h clib.lib
See Also