Mailing List archive

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

[linux-dvb] Re: insmod saa7146_core.o debug = 3 for WinTV-NOVA-t



On Wednesday 17 July 2002 12:04, Johannes Stezenbach wrote:
> On Wed, Jul 17, 2002 at 09:14:08AM +0200, Alexander Nasonov wrote:
> > My program prints "Resource temporarily unavailable" because
> > the DmxDevBufferRead function returns -EWOULDBLOCK before
> > while loop. This happens because both src->pread and src->pwrite
> > are zeros. src->data and src->size seems to be ok.
> > The result is the same if I open dvr0 (with DMX_OUT_TS_TAP flag
> > of cause).
>
> If you open the device with O_NONBLOCK, read() will return
> EWOULDBLOCK (== EAGAIN) if there's no data.
> Since your example code does the read()s immediately after
> starting the filter, there can be no data. The sleep(1)
> in your code will almost certainly overflow the buffer, so
> the other read()s will get EBUFFEROVERFLOW (769, defined in
> dmx.h).
Without O_NONBLOCK first read hangs my test program (for at least 10 minutes).

I traced src->pread and src->pwrite in DmxDevBufferRead function.
They are equal to zero after every read call. Why?

-- 
Best regards,
Alexander Nasonov
Fraunhofer Gesellschaft



--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index