This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: allocating heap memory in redboot ethernet driver
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Asim Jamshed <asim dot jamshed at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 21 Feb 2006 14:06:25 +0100
- Subject: Re: [ECOS] allocating heap memory in redboot ethernet driver
- References: <ef0b5f230602210423t38e69da4q8d2558735a6fb4f3@mail.gmail.com>
On Tue, Feb 21, 2006 at 05:23:44PM +0500, Asim Jamshed wrote:
> Hi,
>
> Which function do I use in allocating dynamic memory for my pointer
> variables in the ethernet source code.
Ethernet drivers don't use dynamically allocated memory. The only
exception that i know of is when you need to allocate memory from the
PCI window. For this take a look at one of the drivers which does
this, the function is normally called pciwindow_mem_alloc().
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss