INtime SDK Help

heap_set_blk_size

Sets the basic heap allocation block's size.

int heap_set_blk_size(size_t page_cnt);

`page_cnt`

- The number of pages per allocation block.

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.

`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.

Versions | Defined in | Include | Link to |
---|---|---|---|

INtime 4.0 | intime/rt/include/heap.h | heap.h | clib.lib |

See Also