This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fixed memory pools


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]