[ECOS] allocating heap memory in redboot ethernet driver

Andrew Lunn andrew@lunn.ch
Tue Feb 21 13:06:00 GMT 2006


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



More information about the Ecos-discuss mailing list