Hi Gerd,

On Mon, 2003-01-13 at 11:40, Gerd Knorr wrote:
> >  > Another way would be to have some kind of O_EXCL flag, but at ioctl
> >  > level.  So nxtvepg could set that for the S_FREQUENCY ioctl and the
> >  > driver would refuse the switch with -EBUSY if there is more than one
> >  > file handle open at that time.

How is this in effect different from the O_EXCL solution?

> I think with open(O_EXCL) it would work if you close the device before
> attempting to switch the tv station, i.e. like this:
> 
> open(/dev/vbi,0)
> [ read vbi data ]
> close(/dev/vbi)
> 
> if (open(/dev/vbi,O_EXCL)) {
>   [ switch station ]
>   close(/dev/vbi)
> }
> 
> open(/dev/vbi,0)
> [ read more vbi data ]
> close(/dev/vbi)
> 
> Comments?

Urm... Would this also go for video (as part of the API), or only for
vbi? Basically, this is bloated, imho.

Ronald

-- 
Ronald Bultje <[EMAIL PROTECTED]>
Linux Video/Multimedia developer



--
video4linux-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to