This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: cyg mem Info
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Chaitanya <h_chaitanya at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 10 Sep 2003 09:49:57 +0200
- Subject: Re: [ECOS] cyg mem Info
- References: <BAY1-DAV446QcqnWwAe0000d2a4@hotmail.com>
On Wed, Sep 10, 2003 at 04:07:03PM +0530, Chaitanya wrote:
> Hi
>
> I am tying to get some memory statistics of my application on ecos.
> It uses the cyg_mempool_var_try_alloc for allocating memory.
>
> For getting statistics i am using the
> cyg_mempool_var_get_info...
> Can sombody tell me what is the difference between
>
> ifreemem and maxfree members in the cyg_mempool_info_t structure
Have you seen the comment in the header file?
typedef struct {
cyg_int32 totalmem;
cyg_int32 freemem;
void *base;
cyg_int32 size;
cyg_int32 blocksize;
cyg_int32 maxfree; // The largest free block
} cyg_mempool_info;
freemem is the total amount of free memory in the pool. maxfree if the
largest contiguous block of free memory in the pool.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss