[ECOS] fixed memory pools

Christoph Csebits christoph.csebits@frequentis.com
Mon Feb 18 01:16:00 GMT 2002


On Mon, Feb 18, 2002 at 10:08:40AM +0100, Tom Coremans wrote:
> suppose I have created a fixed memory pool of 1000 bytes with a block
> size of 100 bytes. Is it then possible to obtain 10 blocks of 100 bytes
> from the pool without freeing any of them or will that not work. Are
> there maybe some blocks that are used for admin information??

According to
http://sources.redhat.com/ecos/docs-latest/ref/ecos-ref.9.html#pgfId=1026735

The memory available from the memory pools will not be the same size as
the memory supplied to it. Some of the memory is used for internal data
structures of the allocator. cyg_mempool_fix_get_info() and
cyg_mempool_var_get_info() may be used to determine the available
memory.

-- 

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list