Re: Coordinating concurrent users of v4l2 devices

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



Hi Tom,

On Fri, 2003-01-10 at 20:26, Tom Zoerner wrote:
> Is it possible with the current v4l2 API to query the kind of device
> users or at least the number of opens?  I suspect it's currently not
> possible.

Maybe you'd want to add a exclusivity-flag to open() - O_EXCL (see
bits/fcntl.h). I'm not sure whether this is done via file_ops or whether
the driver should do this itself. In the latter case, I don't think any
driver currently implements it. In the first case, it
works-out-of-the-box.

> The ideal solution to this problem I would imagine is to introduce
> priority levels associated with each open.

Nah... All opens should be equal, imho. Priority levels is just too much
work for driver writers, and too much can (and will) go wrong.

Ronald

-- 
Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
Linux Video/Multimedia developer





[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