Re: questions about v4l2 spec #2

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



Hey Franz,

At 07:48 AM 5/22/03 +0200, Franz Reinhardt wrote:
>After requesting buffer should I only mmap a single buffer per mmap() - 
>call ? 
>Or is it possible to map multiple buffers with one mmap ()- call ?

That's how it used to work in v4l1. In v4l2, you map each buffer
separately.
Some drivers will probably not care which of the two you use, for
others (v4l2-only drivers), only single-buffer mapping might work.
So to be safe, use a per-buffer mapping in your app.

>What if mmap () is called again for the same buffer ? 

>From the same session (file descriptor), it will work, afaik. You'll
need to munmap() twice, too. From another session, it will fail and
errno will be set to EBUSY.

Ronald




[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