Re: Proposal for channel coordination between multiple v4l2 users

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



Hi,

> This adds a race window.  Between looking for /dev/video users and
> invoking the ioctl another application might have opened the device.

True.  However, as I understood the proposal, this race wasn't
considered significant.

> IMHO you can't fix that race with a pure userspace implementation.

If you really wanted, I believe you could, using lockfiles.  However,
this probably becomes too complicated.

> That scheme requires cooperation from all applications.

Sure, but so does the proposed priority ioctl() !

Hmm -- you probably mean the default case, where _no_ priority is set
by an app, but its channel change can still result in -EBUSY due to
another app having used set up a higher priority.  Ok, that is not
achievable with the userspace solution, admitted.

Regards,
Wolfram.




[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