Subject: Re: [linux-audio-dev] questions to be resolved
From: Abramo Bagnara (abramo_AT_alsa-project.org)
Date: Tue May 22 2001 - 20:46:44 EEST
Paul Davis wrote:
>
> >> and the memory allocations involved in making a copy may involve
> >> malloc-lib mutexes, page faults and kernel locks via brk(2).
> >
> >No memory allocation is needed. Please give a look again to my pseudo
> >code.
>
> you wrote "copy to temp buffer". where does that come from, and how do
> we know how large it has to be?
>
> >Does it exists in English the term "evil's lawyer"?
>
> "devil's advocate" ? its my middle name :)
Ok, mr. Devil's advocate, what about a preallocated temp buffer? ;-)
Preallocated in the same time when shm was prepared.
-- Abramo Bagnara mailto:abramo_AT_alsa-project.orgOpera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy
ALSA project http://www.alsa-project.org It sounds good!
This archive was generated by hypermail 2b28 : Tue May 22 2001 - 21:20:51 EEST