bperez77 / xilinx_axidma

A zero-copy Linux driver and a userspace interface library for Xilinx's AXI DMA and VDMA IP blocks. These serve as bridges for communication between the processing system and FPGA programmable logic fabric, through one of the DMA ports on the Zynq processing system. Distributed under the MIT License.
MIT License
464 stars 227 forks source link

Question on potentially using select,poll,etc #108

Closed gutelfuldead closed 5 years ago

gutelfuldead commented 5 years ago

I would like to know if it is possible to use with the select/poll system calls with axidma?

I've tried using the fd from the axidma_dev structure after it has been successfully initialized however even though I know there is no data available to read from on the rx channel the (revent & POLLIN) flag associated with it ALWAYS returns true.

Additionally, is it possible to read an arbitrary number of bytes from the DMA and have it return the number of bytes read similar to the read()/recv() functions? It would be nice to not be required to put in the exact amount of bytes expected.

Thanks on the great work on this driver!