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: dynamic allocation of memory during driver initialization?


On Fri, Aug 08, 2003 at 10:49:45PM +0200, Andrew Lunn wrote:

> > How should a driver dynamically allocate buffer space during
> > initialization?

> [...]

> Or you might be able to rearrange the ordering so that malloc
> is up before the init is performed.

I was thinking about that, but had two worries: First, it would
require changing the priority of the entire IO system (all of
the init's would be called later, not just mine) -- I was
afraid that might break something else. Second, I don't know
how to do it. ;)

-- 
Grant Edwards
grante@visi.com

-- 
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]