public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* buffer management
@ 2010-06-22 17:02 Manu Abraham
  2010-06-23 12:43 ` Steven Toth
  0 siblings, 1 reply; 4+ messages in thread
From: Manu Abraham @ 2010-06-22 17:02 UTC (permalink / raw)
  To: Linux Media Mailing List

Hi All,

While working on a driver, i stumbled up on this question. I have a
driver where the driver allocates it's buffers
(maybe it's better to term that the hardware requires it that way) in
the following fashion:

Buffer 1: SG list 1
Buffer 2: SG list 2
Buffer 3: SG list 3
Buffer 4: SG list 4
Buffer 5: SG list 5
Buffer 6: SG list 6
Buffer 7: SG list 7
Buffer 8: SG list 8

Now, on each video interrupt, I know which SG list i need to read
from. At this stage i do need to copy the
buffers associated with each of the SG lists at once. In this
scenario, I don't see how videobuf could be used,
while I keep getting this feeling that a simple copy_to_user of the
entire buffer could do the whole job in a
better way, since the buffers themselves are already managed and
initialized already. Am I correct in thinking
so, or is it that I am overlooking something ?

Comments ?

Thanks,
Manu

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-30 18:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-22 17:02 buffer management Manu Abraham
2010-06-23 12:43 ` Steven Toth
2010-06-23 16:09   ` Marko Ristola
2010-06-30 18:42   ` Marko Ristola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox