[ECOS] dynamic allocation of memory during driver initialization?
Grant Edwards
grante@visi.com
Fri Aug 8 20:38:00 GMT 2003
How should a driver dynamically allocate buffer space during
initialization? The driver doesn't know how many channels are
present in the HW until runtime, and needs to allocate input
and output buffers for channels only if they're present.
I've found one comment that malloc() can't be used during
driver init, so how is this situation typically handled?
--
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
More information about the Ecos-discuss
mailing list