Re: [PATCH v2 1/3] iio: core: Add mmap interface infrastructure

2021-02-14 Thread Jonathan Cameron
On Fri, 12 Feb 2021 12:21:37 +0200 Alexandru Ardelean wrote: > On Fri, Feb 12, 2021 at 12:12 PM Alexandru Ardelean > wrote: > > > > From: Lars-Peter Clausen > > > > Add the necessary infrastructure to the IIO core to support an mmap based > > interface to access the capture data. > > > > The ad

Re: [PATCH v2 1/3] iio: core: Add mmap interface infrastructure

2021-02-14 Thread Jonathan Cameron
On Fri, 12 Feb 2021 12:11:41 +0200 Alexandru Ardelean wrote: > From: Lars-Peter Clausen > > Add the necessary infrastructure to the IIO core to support an mmap based > interface to access the capture data. > > The advantage of the mmap based interface compared to the read() based > interface i

Re: [PATCH v2 1/3] iio: core: Add mmap interface infrastructure

2021-02-12 Thread Alexandru Ardelean
On Fri, Feb 12, 2021 at 12:12 PM Alexandru Ardelean wrote: > > From: Lars-Peter Clausen > > Add the necessary infrastructure to the IIO core to support an mmap based > interface to access the capture data. > > The advantage of the mmap based interface compared to the read() based > interface is t

[PATCH v2 1/3] iio: core: Add mmap interface infrastructure

2021-02-12 Thread Alexandru Ardelean
From: Lars-Peter Clausen Add the necessary infrastructure to the IIO core to support an mmap based interface to access the capture data. The advantage of the mmap based interface compared to the read() based interface is that it avoids an extra copy of the data between kernel and userspace. This