Re: V4L2 - RFC: DMA to userspace API

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



> > For the kernel-buffer case you'd have call VIDIOC_REQBUFS first,
> > then mmap() the memory.  Then call VIDIOC_QUERYBUF, and the driver
> > will fill the pointers in v4l2_buffer.
> 
> The driver only has kernelspace addresses. It can't fill in a userspace
> pointer. It doesn't know what mmap() returned.

Wrong.  You can get it from vma->vm_start in file_operations->mmap().

  Gerd

-- 
Get back there in front of the computer NOW. Christmas can wait.
	-- Linus "the Grinch" Torvalds,  24 Dec 2000 on linux-kernel





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux