Re: [PATCH v5 13/17] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-15 Thread Alexandru Ardelean
On Sun, Feb 14, 2021 at 4:38 PM Jonathan Cameron wrote: > > On Thu, 11 Feb 2021 14:24:48 +0200 > Alexandru Ardelean wrote: > > > With this change, an ioctl() call is added to open a character device for a > > buffer. The ioctl() number is 'i' 0x91, which follows the > > IIO_GET_EVENT_FD_IOCTL

Re: [PATCH v5 13/17] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-14 Thread Jonathan Cameron
On Thu, 11 Feb 2021 14:24:48 +0200 Alexandru Ardelean wrote: > With this change, an ioctl() call is added to open a character device for a > buffer. The ioctl() number is 'i' 0x91, which follows the > IIO_GET_EVENT_FD_IOCTL ioctl. > > The ioctl() will return an FD for the requested buffer

[PATCH v5 13/17] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-02-11 Thread Alexandru Ardelean
With this change, an ioctl() call is added to open a character device for a buffer. The ioctl() number is 'i' 0x91, which follows the IIO_GET_EVENT_FD_IOCTL ioctl. The ioctl() will return an FD for the requested buffer index. The indexes are the same from the /sys/iio/devices/iio:deviceX/bufferY