public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* how to mmap in  videobuf-dma-sg.c
@ 2009-05-21  4:46 Figo.zhang
  2009-05-21 10:35 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 7+ messages in thread
From: Figo.zhang @ 2009-05-21  4:46 UTC (permalink / raw)
  To: linux-media; +Cc: linux-media

hi,all,
 I am puzzle that how to mmap ( V4L2_MEMORY_MMAP) in videobuf-dma-sg.c?

In this file, it alloc the momery using vmalloc_32() , and put this
momery into sglist table,and then use dma_map_sg() to create sg dma at
__videobuf_iolock() function. but in __videobuf_mmap_mapper(), i canot
understand how it do the mmap? 
why it not use the remap_vmalloc_range() to do the mmap?

Thanks ,


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

end of thread, other threads:[~2010-07-26  8:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-21  4:46 how to mmap in videobuf-dma-sg.c Figo.zhang
2009-05-21 10:35 ` Mauro Carvalho Chehab
2009-05-21 10:48   ` Figo.zhang
2009-06-10 15:06     ` Figo.zhang
2010-07-24 13:43   ` Figo.zhang
     [not found]   ` <AANLkTimExb4hh8K5lRCRiM0IMIgsOpCw69bFvqLlQCDc@mail.gmail.com>
2010-07-25 17:46     ` Mauro Carvalho Chehab
2010-07-26  8:16       ` Laurent Pinchart

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