Re: Proposal for channel coordination between multiple v4l2 users

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



Wolfram.Gloger@xxxxxxxxxxxxxxxxxxxxxxxx writes:

> > is returned (coordination of users at the same level is outside of the
> > scope of this proposal, as it is dealt with differently between levels.)
> 
> In my opinion, this concept can be implemented completely in user
> space, without any kernel changes.  Any process can find out which
> processes are using /dev/video (check how 'fuser' does it).

This adds a race window.  Between looking for /dev/video users and
invoking the ioctl another application might have opened the device.
IMHO you can't fix that race with a pure userspace implementation.

> Once you have a list of the processes, you could check a text file or
> database or whatever which maps the process names (OK this is a small
> restriction compared to your proposal) to priorities.  All processes
> that don't appear in the list get the default priority.

That scheme requires cooperation from all applications.

  Gerd

-- 
sigfault




[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