All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: comedi: per-file read/write subdevice choice
@ 2014-11-04 18:08 Ian Abbott
  2014-11-04 18:09 ` [PATCH 1/2] staging: comedi: prepare support for per-file read and write subdevices Ian Abbott
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ian Abbott @ 2014-11-04 18:08 UTC (permalink / raw)
  To: driverdev-devel
  Cc: Greg Kroah-Hartman, Ian Abbott, H Hartley Sweeten, linux-kernel

This series of patches adds a couple of ioctl codes to the Comedi core
to allow the current "read" and "write" subdevice to be changed after
opening the comedi device.  The current read and write subdevice
information is stored in file private data allocated for the lifetime of
the file object, so the notion of current "read" and "write" subdevice
is local to the file object and does not alter anything in the main
control structure for the comedi device.  An extra level of indirection
is now required to access the main control structure.

I've tested the multiple "read" subdevice case using a modified version
of the "comedi_test" module (modifying it to clone the existing AI
subdevice), and a modified version of the "comedi_test" application
(part of the "comedilib" installation) modified to use the new ioctls.
There isn't any support in comedilib itself yet.

1) staging: comedi: prepare support for per-file read and write
   subdevices
2) staging: comedi: add ioctls to set per-file read and write subdevice

 drivers/staging/comedi/comedi.h          |   2 +
 drivers/staging/comedi/comedi_compat32.c |   2 +
 drivers/staging/comedi/comedi_fops.c     | 217 +++++++++++++++++++++++++++----
 3 files changed, 196 insertions(+), 25 deletions(-)

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

end of thread, other threads:[~2014-11-05  9:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-04 18:08 [PATCH 0/2] staging: comedi: per-file read/write subdevice choice Ian Abbott
2014-11-04 18:09 ` [PATCH 1/2] staging: comedi: prepare support for per-file read and write subdevices Ian Abbott
2014-11-04 18:09 ` [PATCH 2/2] staging: comedi: add ioctls to set per-file read and write subdevice Ian Abbott
2014-11-04 18:44 ` [PATCH 0/2] staging: comedi: per-file read/write subdevice choice Hartley Sweeten
2014-11-05  9:48   ` Ian Abbott

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.