All of lore.kernel.org
 help / color / mirror / Atom feed
* iio: Multiple iio_buffer per device
@ 2015-06-23 21:17 Jeremy Trimble
  2015-06-24 18:20 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Trimble @ 2015-06-23 21:17 UTC (permalink / raw)
  To: linux-iio

Hello all.

I've got some custom hardware that provides data in response to an
explicit request (or stream of such requests).  I'd like to use
iio_buffer to catch the data that is returned .  However, I'd also
like multiple users (i.e. multiple openers of the device) to be able
to be able to send requests to the device and each receive the results
into their own separate buffer.

I've implemented a system like this in the past through ad-hoc use of
mmap(), wrote my own userspace buffer interaction library (a la
libiio), and allowing requests to be submitted through ioctl().
However, I'd like to use iio_buffer here if possible, as it is more
widely-supported than my own one-off solution.

Are there any instances of multiple buffers being associated with an
IIO device (or such buffers being created on-the-fly)?  Has this kind
of idea ever been discussed before?

Thanks.
-Jeremy Trimble

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-24 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 21:17 iio: Multiple iio_buffer per device Jeremy Trimble
2015-06-24 18:20 ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.