Re: Re: select(), VIDIOC_DQBUF race

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



Hi Gerd!

> >  1. user does select() to wait for a frame to be ready.
> >  2. select polls until it finds a frame that's done and return POLLIN
> >  3. interrupt handler goes and unmark that frame as ready and start capturing
> >     a new frame into that same buffer.
> 
> Wrong.  You might capture to *another* buffer.  But the driver must not
> capture to the same buffer until it is requeued with QBUF.

Ah, ok. The documentation isn't very clear about this though (unless I
missed something).

-- 

Regards
 Abraham

Avoid the Gates of Hell.  Use Linux
(Unknown source)

__________________________________________________________
 Abraham vd Merwe - 2d3D, Inc.

 Device Driver Development, Outsourcing, Embedded Systems

  Cell: +27 82 565 4451         Snailmail:
   Tel: +27 21 761 7549            Block C, Aintree Park
   Fax: +27 21 761 7648            Doncaster Road
 Email: abraham@xxxxxxxxxx         Kenilworth, 7700
  Http: http://www.2d3d.com        South Africa

Attachment: pgpRwwwR4hRTU.pgp
Description: PGP signature


[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