RE: Allocating videobuf_buffer, but lists not being initialized

2010-11-16 Thread Marek Szyprowski
Hello, On Tuesday, November 16, 2010 8:38 AM Hans Verkuil wrote: > On Tuesday, November 16, 2010 02:10:39 Andrew Chew wrote: > > I'm looking at drivers/media/video/videobuf-dma-contig.c's > > __videobuf_alloc() routine. We call > kzalloc() to allocate the videobuf_buffer. However, I don't see

Re: Allocating videobuf_buffer, but lists not being initialized

2010-11-16 Thread Figo.zhang
于 11/16/2010 03:37 PM, Hans Verkuil 写道: On Tuesday, November 16, 2010 02:10:39 Andrew Chew wrote: I'm looking at drivers/media/video/videobuf-dma-contig.c's __videobuf_alloc() routine. We call kzalloc() to allocate the videobuf_buffer. However, I don't see where the two lists (vb->stream and

Re: Allocating videobuf_buffer, but lists not being initialized

2010-11-16 Thread Figo.zhang
于 11/16/2010 03:40 PM, Hans Verkuil 写道: On Tuesday, November 16, 2010 06:29:53 Pawel Osciak wrote: On Mon, Nov 15, 2010 at 17:10, Andrew Chew wrote: I'm looking at drivers/media/video/videobuf-dma-contig.c's __videobuf_alloc() routine. We call kzalloc() to allocate the videobuf_buffer. Howe

Re: Allocating videobuf_buffer, but lists not being initialized

2010-11-15 Thread Hans Verkuil
On Tuesday, November 16, 2010 08:37:32 Hans Verkuil wrote: > On Tuesday, November 16, 2010 02:10:39 Andrew Chew wrote: > > I'm looking at drivers/media/video/videobuf-dma-contig.c's > > __videobuf_alloc() routine. We call kzalloc() to allocate the > > videobuf_buffer. However, I don't see where

Re: Allocating videobuf_buffer, but lists not being initialized

2010-11-15 Thread Hans Verkuil
On Tuesday, November 16, 2010 06:29:53 Pawel Osciak wrote: > On Mon, Nov 15, 2010 at 17:10, Andrew Chew wrote: > > I'm looking at drivers/media/video/videobuf-dma-contig.c's > > __videobuf_alloc() routine. We call kzalloc() to allocate the > > videobuf_buffer. However, I don't see where the tw

Re: Allocating videobuf_buffer, but lists not being initialized

2010-11-15 Thread Hans Verkuil
On Tuesday, November 16, 2010 02:10:39 Andrew Chew wrote: > I'm looking at drivers/media/video/videobuf-dma-contig.c's __videobuf_alloc() > routine. We call kzalloc() to allocate the videobuf_buffer. However, I > don't see where the two lists (vb->stream and vb->queue) that are a part of > str

Re: Allocating videobuf_buffer, but lists not being initialized

2010-11-15 Thread Pawel Osciak
On Mon, Nov 15, 2010 at 17:10, Andrew Chew wrote: > I'm looking at drivers/media/video/videobuf-dma-contig.c's __videobuf_alloc() > routine.  We call kzalloc() to allocate the videobuf_buffer.  However, I > don't see where the two lists (vb->stream and vb->queue) that are a part of > struct vid

Allocating videobuf_buffer, but lists not being initialized

2010-11-15 Thread Andrew Chew
I'm looking at drivers/media/video/videobuf-dma-contig.c's __videobuf_alloc() routine. We call kzalloc() to allocate the videobuf_buffer. However, I don't see where the two lists (vb->stream and vb->queue) that are a part of struct videobuf_buffer get initialized (with, say, INIT_LIST_HEAD).