Re: [PATCH v10 3/6] iio: core: Add new DMABUF interface infrastructure

2024-06-18 Thread Paul Cercueil
Hi Markus, Le lundi 17 juin 2024 à 08:56 +0200, Markus Elfring a écrit : > … > > +++ b/drivers/iio/industrialio-buffer.c > … > >  static int iio_buffer_chrdev_release(struct inode *inode, struct > > file *filep) > >  { > … > >   wake_up(>pollq); > > > > + mutex_lock(>dmabufs_mutex); > > + >

Re: [PATCH v10 3/6] iio: core: Add new DMABUF interface infrastructure

2024-06-17 Thread Markus Elfring
… > +++ b/drivers/iio/industrialio-buffer.c … > static int iio_buffer_chrdev_release(struct inode *inode, struct file *filep) > { … > wake_up(>pollq); > > + mutex_lock(>dmabufs_mutex); > + > + /* Close all attached DMABUFs */ … > + mutex_unlock(>dmabufs_mutex); > + >

Re: [PATCH v10 3/6] iio: core: Add new DMABUF interface infrastructure

2024-06-17 Thread Nuno Sá
On Sat, 2024-06-15 at 13:07 +0200, Paul Cercueil wrote: > Le dimanche 09 juin 2024 à 10:53 +0100, Jonathan Cameron a écrit : > > On Wed,  5 Jun 2024 13:08:42 +0200 > > Paul Cercueil wrote: > > > > > Add the necessary infrastructure to the IIO core to support a new > > > optional DMABUF based

Re: [PATCH v10 3/6] iio: core: Add new DMABUF interface infrastructure

2024-06-15 Thread Paul Cercueil
Le dimanche 09 juin 2024 à 10:53 +0100, Jonathan Cameron a écrit : > On Wed,  5 Jun 2024 13:08:42 +0200 > Paul Cercueil wrote: > > > Add the necessary infrastructure to the IIO core to support a new > > optional DMABUF based interface. > > > > With this new interface, DMABUF objects (externally

Re: [PATCH v10 3/6] iio: core: Add new DMABUF interface infrastructure

2024-06-09 Thread Jonathan Cameron
On Wed, 5 Jun 2024 13:08:42 +0200 Paul Cercueil wrote: > Add the necessary infrastructure to the IIO core to support a new > optional DMABUF based interface. > > With this new interface, DMABUF objects (externally created) can be > attached to a IIO buffer, and subsequently used for data

[PATCH v10 3/6] iio: core: Add new DMABUF interface infrastructure

2024-06-05 Thread Paul Cercueil
Add the necessary infrastructure to the IIO core to support a new optional DMABUF based interface. With this new interface, DMABUF objects (externally created) can be attached to a IIO buffer, and subsequently used for data transfer. A userspace application can then use this interface to share