0

Is it possible to modify a v4l2_buffer allocated through MMAP in userspace such that the physical address of the requested buffer points towards a desired physical memory? The goal is that we have a sensor writing data in a circular buffer within a reserved memory range and we would like to avoid copying the data (as they are made available by the sensor which triggers an IRQ as soon as the buffer is filled).

Thank you for any help you could provide!

  • see https://stackoverflow.com/q/20293005/1216776 – stark Jun 06 '21 at 11:09
  • Thank you for the link. I know how to map physical addresses to virtual addresses within the kernel. My question is centred on the V4L2 framework. I cannot find where the physical address and the virtual address of a mapped buffer is stored within the vb2_buffer... – user1273813 Jun 06 '21 at 12:01

0 Answers0