Re: [Xenomai] 2 potential udd drivers fixes

2018-05-18 Thread Philippe Gerum
On 05/18/2018 05:34 AM, Pham, Phong wrote: > > Hi, > > Currently, a user space driver write() API does not clear the number of > interrupts occurred since the last read() API. Instead it disable interrupt > unless a UDD_RTIOC_IRQEN request comes in to enable interrupt. The fact that > ioctl(

[Xenomai] 2 potential udd drivers fixes

2018-05-17 Thread Pham, Phong
Hi, Currently, a user space driver write() API does not clear the number of interrupts occurred since the last read() API. Instead it disable interrupt unless a UDD_RTIOC_IRQEN request comes in to enable interrupt. The fact that ioctl() does support these requests makes write(UDD_RTIOC_IRQEN