Doubt regarding DMA / VMALLOC memory ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am new to V4L2 kernel framework. And currently trying to understand V4L2
kernel sub-system.
In videobuf2 sub-system, before calling 'vb2_queue_init(q)',  q's mem_ops is
being initialized (depending on type of buffer) as

q->mem_ops = &vb2_vmalloc_memops;
or
q->mem_ops = &vb2_dma_contig_memops

What is the purpose of these memory operations?
If user space is allocating the buffer (physically contiguous) via some other
kernel driver (hwmem - for android). Even then do we need to set mem_ops =
vb2_dma_contig_memops?


Thanks,
Chetan Nanda
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux