RE: buffer read

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

 



> Are you sure about the version number?
My mistake.  3.6.0.

>You can use the poll() or select() API to wait for data to arrive before issuing the read() command.
poll() with a timeout returns 0 for fds.events set to POLLIN | POLLPRI.

Similarly, select() does not work. 

> Also make sure that the buffer is enabled
With read() in loop, data appears after iio_push_to_buffers().

Thank you Lars.

- Dennis




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux